Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
3521 . Problem K
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
User's AC Ratio
NaN% (
0/0
)
Submission's AC Ratio
NaN% (
0
/
0
)
Tags
Show solution-related tags
ICPC Yokohama 2021
Description
The PDF version of this problemset can be downloaded here.
Warn: 本題有 checker
Input Format
Output Format
Hints
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
10000
65536
200
1
10000
65536
200
2
10000
65536
200
3
10000
65536
200
4
10000
65536
200
5
10000
65536
200
6
10000
65536
200
7
10000
65536
200
8
10000
65536
200
9
10000
65536
200
10
10000
65536
200
11
10000
65536
200
12
10000
65536
200
13
10000
65536
200
14
10000
65536
200
15
10000
65536
200
16
10000
65536
200
17
10000
65536
200
18
10000
65536
200
19
10000
65536
200
20
10000
65536
200
21
10000
65536
200
22
10000
65536
200
23
10000
65536
200
24
10000
65536
200
25
10000
65536
200
26
10000
65536
200
27
10000
65536
200
28
10000
65536
200
29
10000
65536
200
30
10000
65536
200
31
10000
65536
200
32
10000
65536
200
33
10000
65536
200
34
10000
65536
200
35
10000
65536
200
36
10000
65536
200
37
10000
65536
200
38
10000
65536
200
39
10000
65536
200
40
10000
65536
200
41
10000
65536
200
42
10000
65536
200
43
10000
65536
200
44
10000
65536
200
45
10000
65536
200
46
10000
65536
200
47
10000
65536
200
48
10000
65536
200
49
10000
65536
200
50
10000
65536
200
51
10000
65536
200
52
10000
65536
200
53
10000
65536
200
54
10000
65536
200
55
10000
65536
200
56
10000
65536
200
57
10000
65536
200
58
10000
65536
200
59
10000
65536
200
60
10000
65536
200
61
10000
65536
200
62
10000
65536
200
63
10000
65536
200
64
10000
65536
200
65
10000
65536
200
66
10000
65536
200
67
10000
65536
200
68
10000
65536
200
69
10000
65536
200
70
10000
65536
200
71
10000
65536
200
72
10000
65536
200
73
10000
65536
200
74
10000
65536
200
75
10000
65536
200
76
10000
65536
200
77
10000
65536
200
78
10000
65536
200
79
10000
65536
200
80
10000
65536
200
81
10000
65536
200
82
10000
65536
200
83
10000
65536
200
84
10000
65536
200
85
10000
65536
200
86
10000
65536
200
87
10000
65536
200
88
10000
65536
200
89
10000
65536
200
90
10000
65536
200
91
10000
65536
200
92
10000
65536
200
93
10000
65536
200
94
10000
65536
200
95
10000
65536
200
96
10000
65536
200
97
10000
65536
200
98
10000
65536
200
99
10000
65536
200
100
10000
65536
200
101
10000
65536
200
102
10000
65536
200
103
10000
65536
200
104
10000
65536
200
105
10000
65536
200
106
10000
65536
200
107
10000
65536
200
108
10000
65536
200
109
10000
65536
200
110
10000
65536
200
111
10000
65536
200
112
10000
65536
200
113
10000
65536
200
114
10000
65536
200
115
10000
65536
200
116
10000
65536
200
117
10000
65536
200
118
10000
65536
200
119
10000
65536
200
120
10000
65536
200
121
10000
65536
200
122
10000
65536
200
123
10000
65536
200
124
10000
65536
200
125
10000
65536
200
Submit
Back to Top