QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#575598#5710. Solar Flightyaohaoyou10 756ms175976kbC++203.4kb2024-09-19 15:41:162024-09-19 15:41:17

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 28852kb

input:

1000 200 200 1000
657 836 23
962 796 47
497 305 25
837 161 23
220 575 33
697 109 37
401 221 43
883 211 46
727 461 26
681 209 28
413 14 49
664 986 27
431 222 47
307 121 38
638 560 45
801 149 24
878 61 36
761 356 43
839 413 32
931 573 35
218 195 46
201 697 25
951 778 21
705 905 42
861 391 23
582 718 2...

output:

6049
5822
2542
5950
1152
2947
2697
2357
1219
3428
1366
6013
6215
3869
2344
2630
2619
2303
4412
6066
6597
1631
6657
3093
3199
1315
2441
1501
6146
2171
3160
1032
2914
4234
692
5058
3177
3283
5036
1702
3169
1024
6614
1568
5133
2269
4032
877
6458
4609
6270
1564
877
3155
2783
3172
6136
4958
2563
3579
602...

result:

ok 1000 lines

Test #2:

score: 10
Accepted
time: 27ms
memory: 82876kb

input:

10000 4000 800 1000
75657 83836 780
11962 49796 629
89497 1305 816
49837 85161 195
28220 87575 587
68697 54109 882
68401 71221 247
51883 49211 198
76727 74461 213
88681 89209 368
94413 98014 967
53664 32986 885
46431 19222 982
74307 9121 350
1638 41560 377
95801 76149 593
75878 8061 102
17761 83356 ...

output:

66998
372651
71882
230931
117149
150398
355375
284731
10168
280887
314284
339928
385864
37803
408137
106909
273581
236358
396850
199550
414114
154206
241347
242637
89623
303605
301758
406078
286813
367590
279934
316532
315289
368177
294903
60588
306179
175416
178653
73606
123438
53572
263464
367797
...

result:

ok 1000 lines

Test #3:

score: 10
Accepted
time: 248ms
memory: 166964kb

input:

100000 70000 2000 1000
75657 83836 2448100
11962 49796 1600996
89497 1305 2781211
49837 85161 1601062
28220 87575 1329028
68697 54109 2237292
68401 71221 2499307
51883 49211 1775046
76727 74461 2974020
88681 89209 2445860
94413 98014 1700919
53664 32986 2402956
46431 19222 1747481
74307 9121 1615935...

output:

2934379373
2922891391
3515422029
1450321827
1129612500
3943378704
2626723334
2565897601
3834435831
2545857081
2191434562
2238840383
3935335833
2981615579
706657489
2832999972
3381170831
2019351908
2449239345
3300400809
3012385670
3834105878
3707015903
3470161116
985251429
3822861893
596146397
918148...

result:

ok 1000 lines

Test #4:

score: 10
Accepted
time: 206ms
memory: 175976kb

input:

10000001 3000003 2000 1000
50 999947 783585127
95 999907 794505200
164 999891 680508956
229 999861 543263639
244 999849 889154272
325 999780 588428698
394 999749 596808712
460 999691 512172704
521 999670 646367223
592 999658 705991625
678 999565 664968144
767 999558 972852236
848 999494 964463766
93...

output:

1240513824931
1173388781740
824850620980
712840060845
1318911118904
39152826164
763158769681
1217277671244
576924223978
549671580423
1150059359951
66314878130
1337783770468
534664640455
1352506482924
1177552008572
905271273726
320514241628
867265875305
1235343030806
1118906688022
1093648045220
11305...

result:

ok 1000 lines

Test #5:

score: 10
Accepted
time: 195ms
memory: 171208kb

input:

1000000000 543212345 2000 1000
999951415 107406 176163935
999914991 275150 745519734
999832082 425326 314874995
999729085 466864 118662252
999611779 501976 207009093
999475536 573247 57066144
999357075 589628 279583004
999163538 761929 797445536
999152542 961710 723813350
998964573 970121 361676627
...

output:

598278885569
569029417184
605580300205
506749535153
563357280225
604798626755
500812188917
487459532016
579382209540
580193252389
520191808123
529656730663
531516109605
569340871611
451046225257
548750961129
380475495528
546157700686
584124470461
617939989881
540985677891
518485722275
488243711191
3...

result:

ok 1000 lines

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #6:

score: 15
Accepted
time: 376ms
memory: 174816kb

input:

10000 8237 2000 800000
999953445 183040 291726450
999918944 198561 315742340
999888657 307556 388256806
999742224 453277 220167020
999680287 456442 735058932
999485031 585755 219845170
999423156 749421 682373066
999295511 805286 252057572
999283248 926117 556240096
999227898 931100 227194256
9990908...

output:

831959167076
795406015785
816068363857
716514615188
878453316365
603399533311
774852117108
714870964757
662800416701
837945335561
694097954847
836911989211
701103654923
814993672842
818702728489
719195420752
857905075526
874887313166
783567764775
781575581133
679155641851
818040906766
672810224710
7...

result:

ok 800000 lines

Test #7:

score: 15
Accepted
time: 339ms
memory: 169832kb

input:

100 100 2000 800000
102587 999803692 211964024
302018 999699350 269696774
454859 999536969 252545126
625295 999475605 252126257
817992 999371604 383558872
911886 999355971 263041088
1046305 999281347 201839289
1105419 999193960 665915226
1175583 999008669 253099649
1250810 999003350 285798332
139574...

output:

701224914719
539711138039
503839796722
650386666373
760339758015
865354141842
680138025621
865354141842
623059721619
868309546791
619259806419
449430890345
701670970633
792688636022
812316643041
853886991382
495703685632
642839232290
582360981066
585210935200
688715151339
444918771387
473207692800
7...

result:

ok 800000 lines

Test #8:

score: 0
Wrong Answer
time: 756ms
memory: 172972kb

input:

1000000000 600000000 2000 800000
57139 5037 429032336
19701 85840 665720090
59781 43361 784181624
14621 50479 557336474
19001 33423 550496615
81989 51896 457002400
94101 27949 811517740
19465 38171 833870822
28771 53365 356486418
19721 15473 426669362
99960 46401 319366394
19656 33968 714259944
6891...

output:

515977345583
645535427729
723268206802
822073255484
258545416410
420937557223
690898567006
697555559687
624974549696
843956242794
355675130489
338602366239
423713946770
638096499764
225863062061
707477083111
224920967294
835041598961
860590350816
730265342774
363217395700
467374807126
796987017224
7...

result:

wrong answer 48th lines differ - expected: '585781081251', found: '585559125111'