TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

To enhance the strongness of the testdata:

- the upper bound of N has been raised to 300000.

- the upper bound of M has been raised to 500000.

Output Format

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 3000 524288 131072
1 3000 524288 131072
2 3000 524288 131072
3 3000 524288 131072
4 3000 524288 131072
5 3000 524288 131072
6 3000 524288 131072
7 3000 524288 131072
8 3000 524288 131072
9 3000 524288 131072
10 3000 524288 131072
11 3000 524288 131072
12 3000 524288 131072
13 3000 524288 131072
14 3000 524288 131072
15 3000 524288 131072
16 3000 524288 131072
17 3000 524288 131072
18 3000 524288 131072
19 3000 524288 131072
20 3000 524288 131072
21 3000 524288 131072
22 3000 524288 131072
23 3000 524288 131072
24 3000 524288 131072
25 3000 524288 131072