TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

6
1 155136
1 880301
2
1 87
2
2

Sample Output 1

155136
880301
880301
880301
87
0

Hints

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 262144 131072
1 1000 262144 131072
2 1000 262144 131072
3 1000 262144 131072
4 1000 262144 131072
5 1000 262144 131072
6 1000 262144 131072
7 1000 262144 131072
8 1000 262144 131072
9 1000 262144 131072
10 1000 262144 131072
11 1000 262144 131072
12 1000 262144 131072
13 1000 262144 131072
14 1000 262144 131072