QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#117398#3652. Antimatter RainGuanYunchangWA 519ms24660kbC++112.9kb2023-07-01 04:39:012023-07-01 04:39:05

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3404kb

input:

5 3
1 8
2 3
2 8
5 8
5 9
3 6 6
1 7 4
1 3 1

output:

4
1
4
6
0

result:

ok 5 lines

Test #2:

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

input:

6 3
1 2
4 8
5 10
6 10
7 10
8 10
1 1 1
3 4 3
5 7 9

output:

1
3
9
9
9
0

result:

ok 6 lines

Test #3:

score: 0
Accepted
time: 502ms
memory: 24660kb

input:

100000 99848
461204923 637745978
730940613 102572682
422553731 879673851
959120803 991859511
66598648 437664322
968838882 853361367
807956510 415715356
293677855 629374884
112400753 480198913
759527413 731879157
888208396 962495575
378888480 976763956
86782568 830961763
104317977 910253192
599817862...

output:

637725292
102566084
879595382
991830068
437311948
853113431
415707097
628685428
480160596
731864107
962094102
976763930
830904381
910248454
652627393
807526651
705104190
675281954
214262587
797606430
0
640747989
580293039
191926114
651332622
634401276
582962011
871433879
0
268034028
330703413
298653...

result:

ok 100000 lines

Test #4:

score: 0
Accepted
time: 484ms
memory: 24392kb

input:

100000 99628
577777925 801287929
37068709 326405410
634848495 7867761
869221913 643452536
749602674 814216198
971992064 530501551
56742331 138375983
652886967 950100618
556286686 606408066
464360884 994325977
276496200 853867831
245119123 766411254
168987406 558974142
724658430 990992666
626737492 8...

output:

801232824
0
7783790
642733981
814193564
0
0
950097246
606394309
994321901
853786329
766316681
558966994
990988962
887831443
87777120
736082434
0
886205140
238736749
852388096
900936749
0
0
721308490
836065791
0
232972673
473349858
475685732
0
170516794
713116881
819243501
820189458
25409240
18231941...

result:

ok 100000 lines

Test #5:

score: 0
Accepted
time: 519ms
memory: 24484kb

input:

100000 99584
409045089 846398047
623469667 749163081
563263708 825732697
592536917 958727122
726870068 726112530
155555360 769747273
52857519 960819778
510933674 66393706
848718045 299105323
985334284 838528813
994493645 450107631
222352958 146061685
835040126 267566726
48234287 848576667
203587996 ...

output:

846386815
749112756
825623409
958714411
726058240
769325564
0
66390075
299102554
0
0
145933077
267545347
848558449
484998424
492115891
0
906078271
834469882
115200500
598572594
0
0
865353284
111179779
935989913
252529213
508179704
0
342376316
0
449465845
0
286515197
864414095
869316420
907349300
302...

result:

ok 100000 lines

Test #6:

score: 0
Accepted
time: 436ms
memory: 24364kb

input:

100000 99445
582948436 892030017
748511441 701710818
604686594 2428156
173692569 609536839
365550651 584192841
575478113 135169773
659643019 942891139
167985867 967510613
471217789 403239280
525832649 399186100
846150529 131828663
256396173 760060348
971491942 327460761
713581298 877945574
699566552...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
275680643
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
78748259
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
77623426
0
0
0
0
0
0
0
203210308
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 100000 lines

Test #7:

score: 0
Accepted
time: 0ms
memory: 3444kb

input:

1 1
1 1
2 3 1

output:

0

result:

ok single line: '0'

Test #8:

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

input:

1 1
10 10
1 20 11

output:

0

result:

ok single line: '0'

Test #9:

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

input:

1 1
1 1000000000
1 1 1

output:

0

result:

wrong answer 1st lines differ - expected: '1', found: '0'