Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
TIOJ April Fools Day Contest 2024 題解上線啦!
題解點
這裡
、題目在
這裡
~
Results of submission #347770
Back to Submissions List
Problem
Total Time (ms)
Max Memory (RSS, KiB)
Verdict
Score
2242. 抽水機
6870
30740
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
6052
3220
Accepted
100
1
1
000
2.3
6052
3256
Accepted
100
2
1
000
2.3
6052
3224
Accepted
100
3
2
5
000
8.5
6836
3764
Accepted
100
4
2
5
000
8.1
6836
3792
Accepted
100
5
2
5
000
8.4
6836
4008
Accepted
100
6
2
5
000
7.8
6836
3828
Accepted
100
7
2
5
000
7.6
6872
4112
Accepted
100
8
2
5
000
7.6
6868
4268
Accepted
100
9
2
5
000
7.4
6876
4276
Accepted
100
10
2
5
000
7.6
6768
4040
Accepted
100
11
2
5
000
8.4
6696
3892
Accepted
100
12
2
5
000
7.9
6772
4024
Accepted
100
13
2
5
000
7.8
6736
3952
Accepted
100
14
3
5
0
110.5
22776
16940
Accepted
100
15
3
5
0
112.6
22776
16976
Accepted
100
16
3
5
0
111.5
22776
16876
Accepted
100
17
3
5
0
114.8
22776
16976
Accepted
100
18
3
5
0
111.9
22772
17080
Accepted
100
19
3
5
0
114.5
22776
17052
Accepted
100
20
3
5
0
106.7
22772
16920
Accepted
100
21
3
5
0
110.5
22772
17032
Accepted
100
22
4
5
0
123.4
25924
21800
Accepted
100
23
4
5
0
124.9
25924
22032
Accepted
100
24
4
5
0
123.8
25924
22000
Accepted
100
25
4
5
0
124.8
25924
21900
Accepted
100
26
4
5
0
120.2
25924
21924
Accepted
100
27
4
5
0
119.0
25924
21748
Accepted
100
28
4
5
0
118.7
25920
21772
Accepted
100
29
4
5
0
118.7
25924
21952
Accepted
100
30
4
5
00
95.6
25920
21920
Accepted
100
31
4
5
00
92.5
25928
22036
Accepted
100
32
4
5
00
92.5
25920
21916
Accepted
100
33
5
0
149.3
22776
17032
Accepted
100
34
5
0
158.7
22776
16972
Accepted
100
35
5
0
149.9
22776
16876
Accepted
100
36
5
0
147.8
22776
17056
Accepted
100
37
5
0
151.1
22772
16964
Accepted
100
38
5
0
156.3
22772
17272
Accepted
100
39
5
0
151.8
22776
17056
Accepted
100
40
5
0
150.7
22772
16972
Accepted
100
41
5
0
149.2
22772
17032
Accepted
100
42
5
0
145.7
22772
17004
Accepted
100
43
5
0
161.4
23336
17772
Accepted
100
44
5
0
146.7
22772
16860
Accepted
100
45
5
0
146.5
22772
16920
Accepted
100
46
5
0
143.8
22776
16944
Accepted
100
47
5
0
143.7
22772
17048
Accepted
100
48
5
0
138.7
21720
16888
Accepted
100
49
5
0
139.2
20752
16032
Accepted
100
50
5
0
140.5
20396
15816
Accepted
100
51
5
0
142.6
20520
15372
Accepted
100
52
5
0
142.7
20480
15496
Accepted
100
53
5
0
144.3
20144
15216
Accepted
100
54
5
0
143.0
19928
15464
Accepted
100
55
5
0
139.3
20876
16328
Accepted
100
56
5
0
138.6
20876
16232
Accepted
100
57
5
0
145.9
20396
15924
Accepted
100
58
5
0
143.0
20396
16048
Accepted
100
59
5
0
142.5
20100
15800
Accepted
100
60
5
0
141.6
20100
15860
Accepted
100
61
5
0
158.9
36868
30712
Accepted
100
62
5
0
158.2
36868
30740
Accepted
100
63
5
0
108.7
27928
22900
Accepted
100
64
5
0
109.1
27928
23180
Accepted
100
Submitter:
Adrien Wu
Compiler:
c++17
Code Length:
7.53 KB
Back to Top