TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3 4
3 1 2
1 2
1 3
2 3

Sample Output 1

1 3 2 0

Sample Input 2

2 3
1 2
1 2
1 2

Sample Output 2

0 2 1

Hints

Problem Source

NPSC 2020 高中組決賽 pE

Subtasks

No. Testdata Range Constraints Score
1 0~1 範例測資 0
2 0~36 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 7000 1048576 1048576 1 2
1 7000 1048576 1048576 1 2
2 7000 1048576 1048576 2
3 7000 1048576 1048576 2
4 7000 1048576 1048576 2
5 7000 1048576 1048576 2
6 7000 1048576 1048576 2
7 7000 1048576 1048576 2
8 7000 1048576 1048576 2
9 7000 1048576 1048576 2
10 7000 1048576 1048576 2
11 7000 1048576 1048576 2
12 7000 1048576 1048576 2
13 7000 1048576 1048576 2
14 7000 1048576 1048576 2
15 7000 1048576 1048576 2
16 7000 1048576 1048576 2
17 7000 1048576 1048576 2
18 7000 1048576 1048576 2
19 7000 1048576 1048576 2
20 7000 1048576 1048576 2
21 7000 1048576 1048576 2
22 7000 1048576 1048576 2
23 7000 1048576 1048576 2
24 7000 1048576 1048576 2
25 7000 1048576 1048576 2
26 7000 1048576 1048576 2
27 7000 1048576 1048576 2
28 7000 1048576 1048576 2
29 7000 1048576 1048576 2
30 7000 1048576 1048576 2
31 7000 1048576 1048576 2
32 7000 1048576 1048576 2
33 7000 1048576 1048576 2
34 7000 1048576 1048576 2
35 7000 1048576 1048576 2
36 7000 1048576 1048576 2