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

Sample Output 1

2
3

Hints

Problem Source

NCPC 2026 Final Problem J

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 1048576 1048576
1 3000 1048576 1048576