|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|15 초||512 MB||71||22||7||15.909%|
For each (X,Y) pair, count how many numbers from the matrix are greater than or equal to X but smaller than or equal to Y.
The input file is a binary file containing 32-bit integer numbers. The input file consists of:
There will be at least one pair and at most 100 pairs in the file – and there will not be an incomplete pair at the end of the file.
For each pair you should write to standard output a value representing how many numbers in the matrix are greater than or equal to X but smaller than or equal to Y.
2 4 1 5 10 10 2 10 20 99 10 99 2 9 100 1000 10 10
5 2 0 3
Sample Input, here in text form, not binary, for obvious reasons.
바이너리 형식의 예제 입력은 https://www.acmicpc.net/data/9265.in 에서 받을 수 있다.