QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#409283#7523. Partially Free MealhhoangcpWA 183ms13136kbC++203.6kb2024-05-11 21:13:052024-05-11 21:13:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2 5
4 3
3 7

output:

7
11
16

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 173ms
memory: 13136kb

input:

200000
466436993 804989151
660995237 756645598
432103296 703610564
6889895 53276988
873617076 822481192
532911431 126844295
623111499 456772252
937464699 762157133
708503076 786039753
78556972 5436013
582960979 398984169
786333369 325119902
930705057 615928139
924915828 506145001
164984329 208212435...

output:

1318594
3208018
5570526
7340845
9223347
11149865
12332210
13476823
14788280
16172895
17768627
19336633
20693779
22005236
23389851
25073157
26760338
28509336
30294967
32093959
33976461
35893858
37754030
39588384
41470886
43388283
45309771
47309654
48837539
50417767
52079411
53762717
55190044
56577630...

result:

ok 200000 lines

Test #3:

score: 0
Accepted
time: 179ms
memory: 13020kb

input:

200000
847759212 808195187
499393947 158845704
286713001 829058634
347836790 268095042
525802369 342098012
260721485 611292083
95451146 853465743
666288241 921988396
958024432 522176958
284971271 952579505
408975858 657474613
444942472 596256250
291446883 538551864
942712385 142670067
239468458 9590...

output:

1398661
1990331
2912658
4186260
5510021
7421286
8925937
10233209
11427663
12466304
13739906
15048281
16438721
17917204
19556134
21034617
22945882
24964675
27046288
28988324
30624067
32102550
33629849
35258767
36683909
38129744
39608227
41135526
42764444
44559165
46466041
48377306
49860205
51250645
5...

result:

ok 200000 lines

Test #4:

score: 0
Accepted
time: 183ms
memory: 12896kb

input:

200000
453045091 809721921
853476741 595698118
218851090 887561745
864896419 760665890
291906050 833777661
706333418 479486544
207093005 36386646
969262171 137545723
501777026 470632513
238108337 821895650
757244578 277013047
715147479 651214680
995278884 359331973
20441197 903583173
61588145 378817...

output:

1629450
3451675
5862264
7342961
8475016
9707673
11350240
13021035
14824028
16466595
18145506
19755199
21397766
23219991
25058891
26869771
28383182
29992875
31635442
33457667
35296567
37269548
39205891
41028116
42867016
44839997
46268352
47600752
48988255
50421419
51854715
53368126
54897681
56507374
...

result:

ok 200000 lines

Test #5:

score: 0
Accepted
time: 180ms
memory: 12936kb

input:

200000
724371 812164590
786885 853213841
375367 446887348
442587 266053048
910413 644441954
304737 493015342
449866 304716006
711453 152694644
405700 232509173
921335 223801102
979624 725734275
524990 894904581
975621 908452940
211492 159635302
996047 882815311
201533 598711233
152477 256633677
9411...

output:

112065
210146
299616
337074
391448
445884
500608
562757
637222
714160
812241
882389
944538
1019003
1095941
1179290
1276070
1329394
1383830
1438554
1500703
1564162
1638627
1715565
1798914
1886244
1975154
2064372
2159112
2230385
2293760
2357219
2421075
2486440
2560905
2636978
2713916
2797265
2883902
2...

result:

ok 200000 lines

Test #6:

score: 0
Accepted
time: 178ms
memory: 13048kb

input:

200000
82260 816973645
63190 30304976
15365 98123005
79313 698909248
88351 460688945
45258 145977968
35624 362819795
34062 929296068
13142 373585892
93631 33870837
47414 576582646
25940 764754575
8424 255583152
73559 151261046
51329 935294030
89414 108264540
14984 966447646
70866 477634636
7290 9827...

output:

13886
30185
60597
84857
106218
121551
137850
159549
187975
207878
228613
247795
267766
282648
297981
314280
332886
353621
374388
396087
418706
437819
458554
479321
499571
520306
541073
562772
582630
603365
624132
645831
668408
688579
709314
730081
751780
774399
798048
821818
847209
872827
901523
930...

result:

ok 200000 lines

Test #7:

score: -100
Wrong Answer
time: 150ms
memory: 12996kb

input:

200000
1286 819121925
8997 273901462
8502 181755051
7515 175443695
5821 856272297
7390 111029219
5073 269357259
1581 35806553
7694 913461554
8300 307364045
8256 33038036
5700 229695181
250 919848697
7280 624783228
434 719961279
1232 128882963
8258 924021143
3834 843971163
5625 811204037
1492 2383695...

output:

10995
13359
18477
23804
38945
55481
60947
66065
70271
75389
80027
84800
89342
93179
97100
101148
106126
111244
116478
121825
128995
137178
145792
155005
164337
174083
183478
191218
197417
203657
211242
219019
226857
233378
240963
248740
256578
264569
272752
280960
289628
298655
306432
314270
322261
...

result:

wrong answer 281st lines differ - expected: '2022456', found: '2022605'