QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#557054#5708. Hungry Foxkheiramihoub0 18ms4140kbC++141.3kb2024-09-11 01:41:342024-09-11 01:41:34

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3792kb

input:

5 0
23
30
48
42
49

output:

98 109

result:

wrong answer 1st lines differ - expected: '49 195', found: '98 109'

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3864kb

input:

10 470
689
560
525
763
881
573
756
614
765
921

output:

902 1180

result:

wrong answer 1st lines differ - expected: '451 3013', found: '902 1180'

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3592kb

input:

7 418
137
67
420
266
302
661
908

output:

1682 1986

result:

wrong answer 1st lines differ - expected: '841 3154', found: '1682 1986'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 3816kb

input:

8 250
970
118
562
193
768
124
453
98

output:

1744 2372

result:

wrong answer 1st lines differ - expected: '872 4383', found: '1744 2372'

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 3788kb

input:

9 376
249
544
879
715
199
377
78
76
944

output:

1736 2781

result:

wrong answer 1st lines differ - expected: '868 4961', found: '1736 2781'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3784kb

input:

9 47
30
27
63
0
31
37
543
769
654

output:

1538 1998

result:

wrong answer 1st lines differ - expected: '769 3892', found: '1538 1998'

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 3788kb

input:

10 227
0
65
84
580
893
505
616
648
92
181

output:

1786 3047

result:

wrong answer 1st lines differ - expected: '893 5594', found: '1786 3047'

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 3560kb

input:

10 237
38
4
676
520
776
235
52
110
837
0

output:

1674 3077

result:

wrong answer 1st lines differ - expected: '837 5682', found: '1674 3077'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 3876kb

input:

1000 530464
211908
420171
364765
85032
418733
21427
169977
281674
126677
158573
251977
313263
59134
219767
88251
109925
431245
458293
303377
37867
243022
21681
516033
53948
142169
438671
143138
110619
198589
451834
150762
328378
459258
14679
246562
493517
220083
99737
352977
362396
197889
283500
126...

output:

1060028 135596783

result:

wrong answer 1st lines differ - expected: '530014 360002009', found: '1060028 135596783'

Test #10:

score: 0
Wrong Answer
time: 18ms
memory: 3916kb

input:

100000 999553257
999866043
999644208
999872814
999627565
999972947
999973497
999626583
999774270
999896885
999801602
999820793
999663513
999958556
999719027
999737722
999564626
999723341
999634943
999853152
999788371
999588957
999637707
999911457
999886176
999814896
999675050
999647018
999564625
999...

output:

893482 -1722819539

result:

wrong answer 1st lines differ - expected: '446741 29767886585', found: '893482 -1722819539'

Test #11:

score: 0
Wrong Answer
time: 0ms
memory: 3660kb

input:

700 581
346
837
134
904
336
68
431
21
40
525
92
384
564
455
821
262
428
997
547
351
840
324
163
454
498
397
28
748
929
784
503
876
353
493
704
981
959
697
126
286
989
51
155
818
666
671
703
165
247
160
80
672
764
99
341
140
473
821
850
315
962
13
541
153
369
55
926
579
838
713
499
775
137
97
608
372...

output:

1996 181681

result:

wrong answer 1st lines differ - expected: '998 364986', found: '1996 181681'

Test #12:

score: 0
Wrong Answer
time: 0ms
memory: 3852kb

input:

11 0
46
27
82
39
30
77
5
71
99
94
0

output:

198 368

result:

wrong answer 1st lines differ - expected: '99 798', found: '198 368'

Test #13:

score: 0
Wrong Answer
time: 1ms
memory: 3724kb

input:

8000 811792
906262
991579
314340
884403
879420
173546
943479
890099
126842
173196
181614
101174
759831
859495
868712
985487
892070
895022
395373
775195
478938
899454
979417
984661
343334
989236
973024
183342
188534
62166
172192
905880
899218
640911
348649
864913
669929
93870
991924
991257
975145
889...

output:

1999516 2026206435

result:

wrong answer 1st lines differ - expected: '999758 4050789688', found: '1999516 2026206435'

Test #14:

score: 0
Wrong Answer
time: 16ms
memory: 3912kb

input:

90000 407812686
863392876
798650883
921512574
797426637
665491360
828021815
305972444
388304016
960671165
801913529
852841306
261141801
245712991
515452920
730707836
174660157
995961192
775743797
68250612
475836341
80965537
955459183
93268713
994268760
805541602
742904216
447168641
152977740
2747929...

output:

1999971818 1378146233

result:

wrong answer 1st lines differ - expected: '999985909 45529864907418', found: '1999971818 1378146233'

Test #15:

score: 0
Wrong Answer
time: 11ms
memory: 4136kb

input:

80001 532
621
129
244
464
700
323
570
449
796
800
621
133
444
749
370
763
412
45
886
846
188
414
656
783
11
626
492
146
179
648
962
15
879
858
440
823
626
81
444
369
722
196
71
249
898
39
833
492
843
717
971
16
812
285
356
391
593
515
528
973
13
541
178
23
566
47
19
57
426
659
163
168
991
326
43
936...

output:

2000 20048059

result:

wrong answer 1st lines differ - expected: '1000 40095053', found: '2000 20048059'

Test #16:

score: 0
Wrong Answer
time: 14ms
memory: 4140kb

input:

80002 783088
16695
769607
303926
806467
598181
123638
134452
986034
835774
951431
673323
573170
106111
581991
914863
886606
425375
225178
821061
774797
183456
947700
334491
13244
637702
324065
993026
79749
258731
876185
380210
241494
220287
142758
839177
103965
776420
895333
513408
976432
735149
881...

output:

1999992 -1476812940

result:

wrong answer 1st lines differ - expected: '999996 39994480900', found: '1999992 -1476812940'

Test #17:

score: 0
Wrong Answer
time: 14ms
memory: 3876kb

input:

80002 666625980
207421631
992982976
227623091
290604473
275318222
364308215
60495698
563276042
602640275
669019801
441938891
758117615
684933247
673332228
507755764
935047154
739295303
735132710
918777899
575347360
725627659
347189963
732528614
870254630
314952787
139513713
514608378
700824679
79023...

output:

1999984248 1252487750

result:

wrong answer 1st lines differ - expected: '999992124 39832698437015', found: '1999984248 1252487750'

Test #18:

score: 0
Wrong Answer
time: 18ms
memory: 4004kb

input:

100000 97512199
81242089
98303144
33326736
640060762
664278674
20050409
896408834
937887965
406628311
1921763
74337319
15175167
752856076
19713771
332502691
155817694
131709365
32771073
72613532
204696573
780905700
669532052
51130601
675096173
74818678
59409523
321787377
790709397
269367176
38814567...

output:

1999962946 1684720208

result:

wrong answer 1st lines differ - expected: '999981473 49781845377535', found: '1999962946 1684720208'

Test #19:

score: 0
Wrong Answer
time: 0ms
memory: 3616kb

input:

100 0
129
131
872
789
758
359
83
65
1
153
431
284
905
794
452
16
644
974
757
78
695
257
65
130
187
849
70
584
711
140
628
506
844
366
864
792
71
621
901
812
48
829
175
130
542
109
373
320
787
891
457
430
751
428
723
892
903
635
708
711
439
313
440
968
682
170
141
735
199
844
968
251
98
484
702
759
1...

output:

1948 25293

result:

wrong answer 1st lines differ - expected: '974 66854', found: '1948 25293'

Test #20:

score: 0
Wrong Answer
time: 1ms
memory: 3836kb

input:

1000 0
447
664
940
798
852
25
654
221
853
879
857
193
446
218
128
789
479
169
570
948
379
740
444
156
512
705
285
628
296
148
769
389
350
123
608
720
983
907
862
944
715
236
10
814
226
250
802
818
293
975
555
461
856
584
603
162
268
986
567
812
244
977
594
186
650
642
846
709
219
977
505
316
173
985...

output:

2000 248735

result:

wrong answer 1st lines differ - expected: '1000 661554', found: '2000 248735'

Test #21:

score: 0
Wrong Answer
time: 0ms
memory: 3516kb

input:

1000 0
727385
66257
117923
505828
964960
744701
40178
533137
862096
513452
980053
968650
670234
54331
349777
945392
658902
992735
721045
657427
781123
211846
71828
297242
206495
886214
73781
658313
305366
681577
388337
705368
739963
766065
680059
903460
899621
121373
373557
513717
38631
572489
38188...

output:

1999928 259335306

result:

wrong answer 1st lines differ - expected: '999964 691187640', found: '1999928 259335306'

Test #22:

score: 0
Wrong Answer
time: 15ms
memory: 3980kb

input:

100000 0
7693
6743
2940
2807
7496
8556
5459
8408
109
3365
7289
1038
8657
671
6469
1572
9941
7784
1270
6784
1931
411
209
5017
2974
8311
3866
5526
524
4234
9180
8230
1772
6182
1125
739
5181
9647
6165
1049
6878
2658
1244
3583
9476
3538
5887
7780
3675
8162
2459
2645
4586
2941
4591
5373
2534
3214
4464
49...

output:

20000 250424950

result:

wrong answer 1st lines differ - expected: '10000 666952810', found: '20000 250424950'

Test #23:

score: 0
Wrong Answer
time: 18ms
memory: 4016kb

input:

100000 0
302260367
380708949
771057230
657756795
545909011
10898292
452151872
544887273
800868234
365323901
332427351
598809894
394148999
443570112
942838952
887365690
460703269
4648107
533685252
452131335
381667107
283044073
926347799
908333672
818844871
714234793
849817594
579875719
77892473
29237...

output:

1999976700 -506183591

result:

wrong answer 1st lines differ - expected: '999988350 66682342806027', found: '1999976700 -506183591'

Test #24:

score: 0
Wrong Answer
time: 13ms
memory: 3980kb

input:

100000 0
214145951
781041459
471560579
531901852
367686129
947649966
890621708
83623239
134391533
500770892
986014170
611444143
626340906
180188659
838359401
181435930
222417068
973939357
998089798
688335565
754702718
389827543
575419262
218248564
609744860
265964825
25475424
3318774
35903640
295209...

output:

1999971918 1839210243

result:

wrong answer 1st lines differ - expected: '999985959 66640445374134', found: '1999971918 1839210243'

Test #25:

score: 0
Wrong Answer
time: 0ms
memory: 3500kb

input:

10 8
4
0
6
2
2
2
1
2
4
1

output:

16 20

result:

wrong answer 1st lines differ - expected: '8 60', found: '16 20'