QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#882833#3226. Distance SumangletrisectionWA 607ms131256kbC++145.0kb2025-02-05 11:48:032025-02-05 11:48:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 38512kb

input:

10
5 1
2 1
1 1
4 1
2 1
5 1
2 1
2 1
5 1

output:

0
3
4
6
6
8
9
11
12
14

result:

ok 10 lines

Test #2:

score: 0
Accepted
time: 3ms
memory: 32380kb

input:

10
5 1
10 1
5 1
3 1
5 1
5 1
1 1
3 1
1 1

output:

0
4
4
6
6
7
8
12
14
16

result:

ok 10 lines

Test #3:

score: 0
Accepted
time: 2ms
memory: 32364kb

input:

10
4 1
7 1
9 1
3 1
7 1
1 1
7 1
6 1
3 1

output:

0
5
6
9
11
12
12
13
15
17

result:

ok 10 lines

Test #4:

score: 0
Accepted
time: 1ms
memory: 32364kb

input:

10
1 1
9 1
9 1
6 1
9 1
3 1
10 1
1 1
3 1

output:

0
1
3
5
7
8
10
13
13
15

result:

ok 10 lines

Test #5:

score: 0
Accepted
time: 1ms
memory: 38456kb

input:

10
6 1
6 1
3 1
3 1
1 1
1 1
9 1
3 1
1 1

output:

0
2
3
5
6
7
9
12
13
16

result:

ok 10 lines

Test #6:

score: 0
Accepted
time: 1ms
memory: 36460kb

input:

10
8 1
10 1
6 1
3 1
1 1
1 1
4 1
5 1
4 1

output:

0
4
6
6
9
10
13
14
18
19

result:

ok 10 lines

Test #7:

score: 0
Accepted
time: 5ms
memory: 36468kb

input:

10
5 1
8 1
9 1
1 1
1 1
5 1
5 1
1 1
1 1

output:

0
2
4
7
7
9
10
11
13
15

result:

ok 10 lines

Test #8:

score: 0
Accepted
time: 4ms
memory: 36844kb

input:

10
5 1
5 1
8 1
4 1
5 1
4 1
1 1
2 1
7 1

output:

0
4
5
6
6
7
9
11
13
16

result:

ok 10 lines

Test #9:

score: 0
Accepted
time: 1ms
memory: 34428kb

input:

10
4 1
1 1
3 1
3 1
5 1
6 1
6 1
8 1
4 1

output:

0
3
3
4
5
7
10
13
16
19

result:

ok 10 lines

Test #10:

score: 0
Accepted
time: 1ms
memory: 36720kb

input:

10
8 1
10 1
8 1
4 1
9 1
10 1
1 1
8 1
8 1

output:

0
2
4
5
7
9
11
11
12
13

result:

ok 10 lines

Test #11:

score: -100
Wrong Answer
time: 607ms
memory: 131256kb

input:

200000
109891 65231
171839 5776
32431 29819
62570 71905
153470 68881
188361 76298
151469 77636
75162 130242
95864 47113
191182 742
121927 111781
18165 51034
158645 36001
193496 189958
143195 29723
140274 86466
117583 23287
184465 144332
35935 128306
192514 116854
27679 197718
138926 123165
46773 177...

output:

0
2128476
3615067
4333135
5793589
7104606
7876598
9621410
17439733
12443304
12989537
15017823
15660417
16551255
18007974
18487621
20027188
21203385
22454974
22931660
23796204
25173856
26195907
27604778
28662852
29446260
54394180
32645490
33338651
34979442
36020161
37417274
38263592
39224218
71439606...

result:

wrong answer 9th lines differ - expected: '10959705', found: '17439733'