TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

The PDF version of this problem can be downloaded here.

The PDF file of all problems can be downloaded HERE
Warn: 本題有 specialjudge

Input Format

Output Format

Sample Input 1

5
1 2 3 4 5
5 4 3 2 1
3 5 2 1 4

Sample Output 1

13 10 9 5 0
0 1 5 10 12

Hints

Problem Source

Migrated from old NTUJ.

dreamoon

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 65536 200