Files
PAT/html/b1060.html
T

29 lines
867 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<h1>1060. 爱丁顿数(25)</h1>
<div id="problemContent">
<p>
英国天文学家爱丁顿很喜欢骑车。据说他为了炫耀自己的骑车功力,还定义了一个“爱丁顿数”E,即满足有E天骑车超过E英里的最大整数E。据说爱丁顿自己的E等于87。
</p>
<p>
现给定某人N天的骑车距离,请你算出对应的爱丁顿数E(&lt;=N)。
</p>
<p><b>
输入格式:
</b></p>
<p>
输入第一行给出一个正整数N(&lt;=10<sup>5</sup>),即连续骑车的天数;第二行给出N个非负整数,代表每天的骑车距离。
</p>
<p><b>
输出格式:
</b></p>
<p>
在一行中给出N天的爱丁顿数。</p>
<b>输入样例:</b><pre>
10
6 7 6 9 3 10 8 2 7 8
</pre>
<b>输出样例:</b><pre>
6
</pre>
</div>