No.1415 Multiples of 100 and Positive Integers (1)
タグ : / 解いたユーザー数 389
作問者 :
H20
/ テスター :
Problem Statement
Among the integers in the range between $0$ and the integer $N$ (including $0$ and $N$), find the number of integers that are multiples of $100$ and positive.
Input
$N$
- $ -10^{100} \le N \le 10^{100}$
- All inputs are integers.
Output
Output the count, followed by a newline.
Sample
Sample 1
Input
1000
Output
10
$100$, $200$, $300$, $400$, $500$, $600$, $700$, $800$, $900$, and $1000$ qualify.
$0$ is a multiple of $100$, but it is not a positive integer, so it is not included in the count.
Sample 2
Input
-31415
Output
0
There are integers in the range that are multiples of $100$, but none of them are positive integers.
Sample 3
Input
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Output
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
This is the test case with the largest $N$.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。