TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
1 2

14
1 2
1 3
1 4
2 5
2 6
3 7
4 8
4 9
4 10
7 11
7 12
7 13
7 14

Sample Output 1

23 42
42 23

4711 815
666 4711
4711 42
815 7
47 666
666 54
23 42
7 2
7 1
7 3
23 4
42 5
23 6
42 8

Hints

NTUJ cannot show multiple samples, so we merged them here

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