Submit solution
Points:
5
Time limit:
1.0s
Java
2.0s
Python
1.5s
Memory limit:
256M
Author:
Problem type
You have just uploaded your first video as a content creator.
Curious about which audiences you should be targeting, you have gathered data about
Given
Input Specification
The first line of input contains an integer
The second line of input contains
The third line of input contains an integer
The next
Output Specification
For each query, output the total number of viewers between the ages of
Sample Input
Copy
8
12 8 7 12 14 15 9 28
5
6 12
3 5
13 18
3 20
28 28
Sample Output
Copy
5
0
2
7
1
Comments
1 billion years old and watching the same videos as a 1 year old...