BlueBook - Payment
View as PDFBlueBook
Given
, you are to count how many times
falls
into any of the 6 ranges given below.
| Range A | |
| Range B | |
| Range C | |
| Range D | |
| Range E | |
| Range F |
Input Specification
Input consists of a bunch of integers which will be
terminated by
-1.
There will always be less than integers.
Output Specification
Output the number of occurrences of in the ranges
A…F. Output 0 if
was never found for that particular range.
Do not include -1 in your calculations.
Sample Input
1
9999
10001
1000000
29999
-1
Sample Output
2
1
1
0
0
1
Comments