QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#815662#9877. Segment Treeucup-team3188#WA 76ms3808kbC++204.7kb2024-12-15 16:16:082024-12-15 16:16:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
7 1 14 3 9 4 8 2 6 5 5 13 8 2 3
10
2 0 1
2 0 4
2 4 6
2 4 8
2 3 5
1 6 30
2 3 5
2 4 6
1 1 10000000
2 0 8

output:

2
1
4
8
17
18
13
15

result:

ok 8 tokens

Test #2:

score: -100
Wrong Answer
time: 76ms
memory: 3808kb

input:

1
7914575 2436426 4979445
199989
1 1 6190629
1 1 1407775
1 1 2804784
1 2 2631932
1 1 3078537
1 3 286918
1 2 3238506
1 3 3361868
1 2 9296263
1 3 4836991
1 3 2177068
1 3 4291757
1 1 594328
1 2 8996221
1 1 5531545
1 3 3575467
1 3 3206504
1 1 8344965
1 3 6045895
2 0 2
1 2 6248153
1 1 5797489
1 1 9766466...

output:

8344965
5684734
0
2512448
0
0
0
6363152
0
4380822
0
0
0
8653391
0
0
8583126
0
0
0
0
8465921
0
0
7400947
0
0
6081288
0
0
0
0
0
0
0
0
0
1833019
0
0
0
0
0
0
0
0
0
0
5268067
3799685
2604017
6204658
0
5226156
7936892
8825612
5982619
2703999
1197265
0
0
0
0
9141747
0
0
609785
1421175
0
0
0
4657065
593584
...

result:

wrong answer 3rd words differ - expected: '2756417', found: '0'