QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#43601#4546. Counting Good ArrayslarryzhongAC ✓1531ms3988kbC++171.2kb2022-08-09 20:00:122022-08-09 20:00:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1531ms
memory: 3988kb

input:

1000
486 883
23 290
747 511
348 471
670 623
629 164
564 67
997 77
315 500
37 677
248 311
796 268
308 121
302 62
97 468
279 903
46 41
525 684
316 627
671 452
95 853
323 561
774 453
367 6281
34 326
89 747
427 972
557 632
828 392
763 781
131 474
309 524
705 36
902 941
159 965
771 987
3200992 5997028
97...

output:

631912873
315338027
467956819
201505516
690707212
986735216
448196901
514391677
3775328
879898834
608483694
750562807
976713610
582112886
848852999
498981245
51730220
400573309
729001874
139361567
200957321
900938122
795863017
761815049
482147929
866858692
536686424
755634093
239674386
216221570
829...

result:

ok 1000 lines