QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#351479#5587. Distinct Parity ExcessGuanYunchangAC ✓168ms42712kbC++17727b2024-03-11 23:12:322024-03-11 23:12:32

详细

Test #1:

score: 100
Accepted
time: 78ms
memory: 42656kb

input:

3
2 2
2 5
2 10

output:

-1
-4
-5

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 78ms
memory: 42596kb

input:

8
2 100
2 50
50 100
2 1000
100 143
2 1000000
80000 90000
1000000 1000000

output:

13
-1
15
63
0
-1909
-31
1

result:

ok 8 lines

Test #3:

score: 0
Accepted
time: 85ms
memory: 42632kb

input:

10
382245 819896
541000 940657
146832 465833
603509 801534
298623 379575
375605 402241
131337 581395
92899 271294
718706 825535
714017 861484

output:

-784
-608
-518
-88
-253
-41
-1067
-646
-386
-44

result:

ok 10 lines

Test #4:

score: 0
Accepted
time: 105ms
memory: 42592kb

input:

10
5029986 7710504
2780724 8715606
1124900 1304897
1391064 2877235
6811377 8645635
3609999 9999334
3611675 6616197
3599993 6888463
4602820 8926934
948628 1015372

output:

741
-383
-186
-416
-603
894
277
-153
-305
321

result:

ok 10 lines

Test #5:

score: 0
Accepted
time: 116ms
memory: 42652kb

input:

10
2038711 3100771
5100982 8330782
4186549 6595205
2745178 8582462
2990225 5249134
714917 4907291
2265159 8632136
1653054 5378313
3011697 7955156
7552410 9776486

output:

381
963
487
203
-382
-1069
-12
-836
-162
619

result:

ok 10 lines

Test #6:

score: 0
Accepted
time: 168ms
memory: 42656kb

input:

10
2825912 6331426
3371283 8994476
1852689 9530995
503251 2875846
1484762 4452738
2718118 7925568
8246970 9515925
551401 9338634
1219402 1788177
6627126 6835439

output:

181
382
-127
-1282
-147
307
-14
-1250
388
56

result:

ok 10 lines

Test #7:

score: 0
Accepted
time: 109ms
memory: 42680kb

input:

10
4511877 8376994
232714 4628307
5313897 6635021
1350661 6178784
3662577 7241422
1825460 9682385
1108136 5021151
728661 5585243
2193613 4398189
3150983 4600167

output:

312
-1500
1017
-274
-680
-254
-1332
-863
199
-149

result:

ok 10 lines

Test #8:

score: 0
Accepted
time: 103ms
memory: 42712kb

input:

3
2 10000000
2 1000000
2 100000

output:

-1651
-1909
-721

result:

ok 3 lines