TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

5
3 4 2 0 1
2 3 0 4 1

10
9 2 0 1 6 3 4 5 8 7
3 8 0 9 7 1 4 2 6 5

Sample Output 1

6 6 7 7 8

15 17 16 18 16 14 14 15 15 16

Hints

NTUJ cannot show multiple samples, so we merged them here.

Problem Source

Migrated from old NTUJ.

shik

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 200
1 1000 65536 200
2 1000 65536 200
3 1000 65536 200
4 1000 65536 200
5 1000 65536 200
6 1000 65536 200
7 1000 65536 200
8 1000 65536 200
9 1000 65536 200
10 1000 65536 200
11 1000 65536 200
12 1000 65536 200
13 1000 65536 200
14 1000 65536 200
15 1000 65536 200
16 1000 65536 200
17 1000 65536 200
18 1000 65536 200
19 1000 65536 200
20 1000 65536 200
21 1000 65536 200
22 1000 65536 200
23 1000 65536 200
24 1000 65536 200
25 1000 65536 200
26 1000 65536 200