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
3 4 5 1 6 2
4
3 3 2 1
0

Sample Output 1

4 6 4 5 6 6
4 2 4 4

Hints

Problem Source

Migrated from old NTUJ.

cepc 2007

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 20000