Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
TIOJ April Fools Day Contest 2024 題解上線啦!
題解點
這裡
、題目在
這裡
~
Results of submission #347769
Back to Submissions List
Problem
Total Time (ms)
Max Memory (RSS, KiB)
Verdict
Score
2242. 抽水機
7117
30952
Accepted
100
Subtask Results
Subtask no.
Testdata Range
Constraints
Score
1
0~2
範例測資。
0
/ 0
2
3~13
N, Q <= 5000
7
/ 7
3
14~21
ans > 0, tree generated randomly
12
/ 12
4
22~32
tree is a chain
22
/ 22
5
3~64
N, Q <= 10^ 5
59
/ 59
Testdata Results
Testdata no.
Subtasks
Time (ms)
Memory (VSS, KiB)
Memory (RSS, KiB)
Verdict
Score
0
1
000
2.5
6056
3400
Accepted
100
1
1
000
2.2
6056
3220
Accepted
100
2
1
000
2.4
6056
3264
Accepted
100
3
2
5
000
8.8
6840
3988
Accepted
100
4
2
5
000
8.2
6840
3808
Accepted
100
5
2
5
000
8.5
6840
4004
Accepted
100
6
2
5
000
8.0
6840
3980
Accepted
100
7
2
5
000
7.7
6876
4268
Accepted
100
8
2
5
000
7.9
6876
4212
Accepted
100
9
2
5
000
7.4
6876
4148
Accepted
100
10
2
5
000
8.0
6780
4064
Accepted
100
11
2
5
000
8.9
6708
3992
Accepted
100
12
2
5
000
8.2
6784
3976
Accepted
100
13
2
5
000
8.1
6740
3872
Accepted
100
14
3
5
0
116.5
22780
16800
Accepted
100
15
3
5
0
117.5
22780
17060
Accepted
100
16
3
5
0
114.1
22780
17020
Accepted
100
17
3
5
0
116.8
22780
17028
Accepted
100
18
3
5
0
111.8
22776
16908
Accepted
100
19
3
5
0
113.3
22780
17052
Accepted
100
20
3
5
0
110.8
22776
17048
Accepted
100
21
3
5
0
113.7
22776
16748
Accepted
100
22
4
5
0
125.1
25992
22220
Accepted
100
23
4
5
0
124.7
25988
22280
Accepted
100
24
4
5
0
124.2
25988
22052
Accepted
100
25
4
5
0
123.3
25992
22044
Accepted
100
26
4
5
0
120.3
25992
22016
Accepted
100
27
4
5
0
122.3
25988
22184
Accepted
100
28
4
5
0
119.9
25992
22252
Accepted
100
29
4
5
0
119.7
25988
22012
Accepted
100
30
4
5
00
97.0
25988
22104
Accepted
100
31
4
5
00
93.6
25992
22244
Accepted
100
32
4
5
00
93.2
25992
22188
Accepted
100
33
5
0
150.3
22780
17260
Accepted
100
34
5
0
154.5
22780
17148
Accepted
100
35
5
0
153.3
22780
17048
Accepted
100
36
5
0
149.0
22780
17084
Accepted
100
37
5
0
153.4
22776
17028
Accepted
100
38
5
0
156.1
22864
17396
Accepted
100
39
5
0
150.9
22780
16940
Accepted
100
40
5
0
152.2
22776
16940
Accepted
100
41
5
0
143.6
22776
16832
Accepted
100
42
5
0
149.3
22776
17180
Accepted
100
43
5
0
168.7
23172
17824
Accepted
100
44
5
0
148.5
22776
17184
Accepted
100
45
5
0
148.6
22776
16924
Accepted
100
46
5
0
144.8
22780
17056
Accepted
100
47
5
0
146.4
22776
17008
Accepted
100
48
5
0
150.6
21924
17060
Accepted
100
49
5
0
149.6
20692
16068
Accepted
100
50
5
0
151.6
20576
15836
Accepted
100
51
5
0
152.8
20688
15568
Accepted
100
52
5
0
155.4
20404
15396
Accepted
100
53
5
0
159.6
20376
15336
Accepted
100
54
5
0
155.8
20164
15228
Accepted
100
55
5
0
150.8
21316
16936
Accepted
100
56
5
0
150.7
21316
16772
Accepted
100
57
5
0
159.7
22156
16808
Accepted
100
58
5
0
157.6
22152
16796
Accepted
100
59
5
0
155.4
20464
15960
Accepted
100
60
5
0
155.6
20460
15832
Accepted
100
61
5
0
169.8
37660
30772
Accepted
100
62
5
0
170.0
37660
30952
Accepted
100
63
5
0
115.0
28036
22920
Accepted
100
64
5
0
112.8
28040
23112
Accepted
100
Submitter:
Adrien Wu
Compiler:
c++17
Code Length:
7.53 KB
Back to Top