QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#872668#8616. Fast Tree Queriesucup-team018#WA 1ms5736kbC++202.2kb2025-01-26 03:29:392025-01-26 03:29:49

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3712kb

input:

5 6
1 2
1 3
3 4
3 5
? 2 5
+ 1 4 1
? 2 5
+ 4 5 2
? 4 5
? 1 1

output:

5
1
6
2

result:

ok 4 number(s): "5 1 6 2"

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 5736kb

input:

100 100
6 74
6 93
7 46
7 78
10 77
11 9
11 19
11 37
11 51
11 65
12 57
13 15
13 81
13 100
14 2
14 31
16 11
16 24
16 43
16 82
18 4
18 8
21 56
24 29
24 96
26 22
27 32
28 59
29 6
29 94
32 33
35 54
35 80
35 88
37 66
37 71
37 84
38 17
39 64
39 92
40 49
43 7
43 13
43 44
43 79
44 35
44 60
44 63
44 73
46 75
4...

output:

9
61
23765
18873
16440
3359
12074
7924
43203
56762
92
34776
24231
970
24228
18449
3282
17720
21938
63195
11144
108246
63231
99075
104822
10489
110876
16499
19849
31030
120060
81390
108007
16150
20796
30770
61873
9064
191083
232297
84973
89132
172146
5376
160014
228203
98120
32579
109647
228375
121282

result:

wrong answer 1st numbers differ - expected: '106', found: '9'