QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#871188#8616. Fast Tree Queriesucup-team3215#TL 0ms3712kbC++233.9kb2025-01-25 19:48:312025-01-25 19:48:32

详细

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
Time Limit Exceeded

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:


result: