TopCoder

User's AC Ratio

100.0% (3/3)

Submission's AC Ratio

100.0% (7/7)

Tags

Description

Input Format

Output Format

Sample Input 1

6 6 2 2
2 4
3 5
1 6 5
1 2 3
2 3 7
1 5 1
5 4 2
1 6 4

1 0 1 1
1
1

Sample Output 1

5

0

Hints

Problem Source

Migrated from old NTUJ.

Team ranking 2020

Subtasks

No. Testdata Range Score

Testdata and Limits

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