TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

5 3 5
1 3 2 1 2
1 1 2
1 1 3
1 1 4
2 1 2 4 5
3 1 1 3 3 5 5

Sample Output 1

0
0
1
1
1

Hints

Problem Source

YTP 2022 國際賽 p12

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 524288 65536 1 2
1 5000 524288 65536 2
2 5000 524288 65536 2
3 5000 524288 65536 2
4 5000 524288 65536 2
5 5000 524288 65536 2
6 5000 524288 65536 2
7 5000 524288 65536 2
8 5000 524288 65536 2
9 5000 524288 65536 2
10 5000 524288 65536 2
11 5000 524288 65536 2
12 5000 524288 65536 2
13 5000 524288 65536 2
14 5000 524288 65536 2
15 5000 524288 65536 2
16 5000 524288 65536 2
17 5000 524288 65536 2
18 5000 524288 65536 2
19 5000 524288 65536 2
20 5000 524288 65536 2
21 5000 524288 65536 2
22 5000 524288 65536 2
23 5000 524288 65536 2
24 5000 524288 65536 2
25 5000 524288 65536 2
26 5000 524288 65536 2
27 5000 524288 65536 2
28 5000 524288 65536 2
29 5000 524288 65536 2
30 5000 524288 65536 2
31 5000 524288 65536 2
32 5000 524288 65536 2
33 5000 524288 65536 2
34 5000 524288 65536 2
35 5000 524288 65536 2
36 5000 524288 65536 2
37 5000 524288 65536 2
38 5000 524288 65536 2
39 5000 524288 65536 2
40 5000 524288 65536 2
41 5000 524288 65536 2
42 5000 524288 65536 2
43 5000 524288 65536 2
44 5000 524288 65536 2
45 5000 524288 65536 2
46 5000 524288 65536 2
47 5000 524288 65536 2
48 5000 524288 65536 2
49 5000 524288 65536 2
50 5000 524288 65536 2
51 5000 524288 65536 2
52 5000 524288 65536 2
53 5000 524288 65536 2
54 5000 524288 65536 2
55 5000 524288 65536 2
56 5000 524288 65536 2
57 5000 524288 65536 2
58 5000 524288 65536 2
59 5000 524288 65536 2
60 5000 524288 65536 2
61 5000 524288 65536 2
62 5000 524288 65536 2
63 5000 524288 65536 2
64 5000 524288 65536 2
65 5000 524288 65536 2
66 5000 524288 65536 2
67 5000 524288 65536 2
68 5000 524288 65536 2
69 5000 524288 65536 2
70 5000 524288 65536 2
71 5000 524288 65536 2
72 5000 524288 65536 2
73 5000 524288 65536 2
74 5000 524288 65536 2
75 5000 524288 65536 2
76 5000 524288 65536 2
77 5000 524288 65536 2
78 5000 524288 65536 2
79 5000 524288 65536 2
80 5000 524288 65536 2
81 5000 524288 65536 2
82 5000 524288 65536 2
83 5000 524288 65536 2
84 5000 524288 65536 2