{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"给定 N 只青蛙的高度 , 每只青蛙可以看到右边比自己矮的青蛙 \n若是遇到一只高度大于或等于它的青蛙,则无法继续看到这只青蛙和后面的其它青蛙。\n求出每只青蛙可以看到的青蛙的数量的总和 "}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003eLine 1: The number of frogs, \u003ci\u003eN\u003c/i\u003e.\n\u003cbr\u003eLines 2..N+1: Line \u003ci\u003ei\u003c/i\u003e+1 contains a single integer that is the height of frog \u003ci\u003ei\u003c/i\u003e.\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003eLine 1: A single integer that is the sum of \u003ci\u003ec\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e through \u003ci\u003ec\u003csub\u003eN\u003c/sub\u003e\u003c/i\u003e.\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e6\n10 3 7 4 12 2\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e5\u003c/pre\u003e"}}]}