QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119613#6669. Mapaznstz#0 2ms3768kbC++142.6kb2023-07-05 12:51:332024-07-04 00:18:10

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 59.4667
Acceptable Answer
time: 2ms = 1ms + 1ms
memory: 3584kb,3720kb

input:

1
100
495528311 963488152
269613430 443544124
700489871 792354118
151890319 506569919
180452297 13229948
684464994 543841485
978085128 903812192
238355172 441140842
28061035 783291471
530823766 718942732
936853023 439421263
201361623 226633955
304644844 778868118
864860135 461524170
88300500 6959354...

output:

4216
0001011111111111101010001001000110011001010110110110100111011101001110001111000100111111110110010110010000111110011000101011101001011100111101101000000100111111010010010110001100011110000001101000001111101111101110010011000000111000100000101100110011101001010110000001100001001101000001100010100...

input:

2
100 79 4216
0001011111111111101010001001000110011001010110110110100111011101001110001111000100111111110110010110010000111110011000101011101001011100111101101000000100111111010010010110001100011110000001101000001111101111101110010011000000111000100000101100110011101001010110000001100001001101000001...

output:

310305144
821194635
174780370
903812192
805026231
996046536
439421263
645287342
90686849
20101025
440972097
543841485
176553522
249563964
461524170
348624865
848301562
506569919
306718453
206848250
382805509
278712030
964702808
868944393
493895143
39665197
574757075
441140842
785665865
229376884
551...

result:

points 0.59466666670 ok K = 4216

Test #2:

score: 62.8
Acceptable Answer
time: 1ms = 0ms + 1ms
memory: 3728kb,3704kb

input:

1
100
743248071 842720888
367650901 130970775
297946283 705168964
771526942 537186020
245003150 707948455
643491261 668001146
311535032 293708068
183828318 18515526
593973840 915870006
102456762 64193833
729806890 839221652
47145974 35682954
668676377 228428310
370700393 569441954
250911162 48980047...

output:

4116
0110101011111011110001001100001111001100111010111000100110100000000011101001001011100111001111100000001110011001000100110000000010000010101100100100010010011101110011001000000000010101000000011100101111101100100110001010110100100011010111101100011100001011111001010111010010010010010000101100000...

input:

2
100 79 4116
0110101011111011110001001100001111001100111010111000100110100000000011101001001011100111001111100000001110011001000100110000000010000010101100100100010010011101110011001000000000010101000000011100101111101100100110001010110100100011010111101100011100001011111001010111010010010010010000...

output:

442563406
97578442
469403815
293708068
138158276
720700065
839221652
674386240
810209830
563527225
259979005
668001146
813899310
943777483
569441954
226088806
825435650
537186020
131383422
83733737
830289758
425793016
858146541
609883097
414389335
407054915
47572024
18515526
276587480
810627636
4972...

result:

points 0.6280 ok K = 4116

Test #3:

score: 66.1333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3560kb,3488kb

input:

1
100
770174568 168127255
893508708 185778664
976425263 477317099
287595878 512153851
621600374 418802856
818787535 612197605
796811122 566496677
789841517 873731343
43178468 619503942
597852289 471053284
66112404 635260765
158101403 199253397
680158192 123081916
626776438 29107026
721141470 5177084...

output:

4016
0010001101111111110011010011101000110101101010000001010000101001110001011110000011010010001101000100101100110101111110001011001110001110111011010111011111000110110110000101111000010001010001010100110110011011110001101110100111101001110010011010111110001001011110000110100101101100000010001110000...

input:

2
100 79 4016
0010001101111111110011010011101000110101101010000001010000101001110001011110000011010010001101000100101100110101111110001011001110001110111011010111011111000110110110000101111000010001010001010100110110011011110001101110100111101001110010011010111110001001011110000110100101101100000010...

output:

676203467
418593456
222540092
566496677
487711174
155177230
635260765
19655934
405420089
197948311
16997620
612197605
623431791
654167214
29107026
103769907
951695033
512153851
401411177
839097490
141196222
886472586
767476542
270436089
885084406
492744649
861074271
873731343
744691837
300804222
364...

result:

points 0.66133333330 ok K = 4016

Test #4:

score: 62.8
Acceptable Answer
time: 2ms = 1ms + 1ms
memory: 3696kb,3584kb

input:

1
100
546594289 9670068
665528790 773039281
266567267 744830423
338924380 918542055
413001686 717894752
786408307 211692098
280986141 432842000
195582858 921321743
412109607 485887870
262421557 244551274
303481411 585109375
922835159 77375674
276669713 485047938
748493209 63888398
37129726 285918022...

output:

4116
0001110011111111000001001000010110110110001110010010000000011000000110001101001001011100100001110111001000100111010111010110010100110001101001011110011110011101101011111111010110110110100011000000110001011000101001101010100001100011010000100101010001111001001100101110101110000100010100101001100...

input:

2
100 79 4116
0001110011111111000001001000010110110110001110010010000000011000000110001101001001011100100001110111001000100111010111010110010100110001101001011110011110011101101011111111010110110110100011000000110001011000101001101010100001100011010000100101010001111001001100101110101110000100010100...

output:

43372101
204611063
352593757
432842000
142147490
891337416
585109375
743309504
647533065
464964608
876089821
211692098
955710889
971589766
63888398
781195091
748872098
918542055
738134414
271774069
559783342
631668225
32245370
502187994
978371138
563783889
900635155
921321743
760555399
270665755
276...

result:

points 0.6280 ok K = 4116

Test #5:

score: 62.8
Acceptable Answer
time: 1ms = 0ms + 1ms
memory: 3608kb,3472kb

input:

1
100
326454605 159474960
11647328 932941462
367166680 626258331
846588658 385992166
148602944 380296908
32123445 521548223
146657758 872883623
78417135 361494853
902204073 975297913
50096537 520296997
687284103 420187394
93781442 87808395
503014564 573344902
720903126 546124141
87676450 646360824
9...

output:

4116
0001011110111111101001010100000100010100110100000011001001010010000001101001011100011101100111101101100011000110110011000111111001010101001110011000110110011110100011100000001110100011010000000110011011110110101010101101001110000100111111011000110001101000111110000010010001110010110100100111000...

input:

2
100 79 4116
0001011110111111101001010100000100010100110100000011001001010010000001101001011100011101100111101101100011000110110011000111111001010101001110011000110110011110100011100000001110100011010000000110011011110110101010101101001110000100111111011000110001101000111110000010010001110010110100...

output:

744601533
267129639
871217352
872883623
255371549
162360942
420187394
62984915
242781986
691399852
480380990
521548223
206206675
214089065
546124141
380557861
669664079
385992166
150840342
413877880
634078816
965530575
770169571
451364705
804171981
524846617
166621075
361494853
603970305
891038427
6...

result:

points 0.6280 ok K = 4116

Test #6:

score: 62.8
Acceptable Answer
time: 2ms = 1ms + 1ms
memory: 3544kb,3768kb

input:

1
100
64333280 212072142
621741906 581061751
485561139 692210649
992259436 287935018
247191279 473618369
757620730 140577613
737479792 180977604
404566245 999575096
265846881 11981569
207666352 505750476
304958822 388901054
389584560 428620342
171809402 115660346
324907936 144402645
844495803 791121...

output:

4116
1000001111111111111110100000111001101101111110001010011001001110000011101110001100100100010101000110100011001100110111101001001000010100101110001011110101010001010001100101001000100101100110110000011111010110101110000111000100101011101100101101000010000110000100001011001100010001111111110100100...

input:

2
100 79 4116
1000001111111111111110100000111001101101111110001010011001001110000011101110001100100100010101000110100011001100110111101001001000010100101110001011110101010001010001100101001000100101100110110000011111010110101110000111000100101011101100101101000010000110000100001011001100010001111111...

output:

925952390
770406569
77034978
180977604
957934192
99668862
388901054
858699296
371495636
28514411
68070922
140577613
781757001
847250666
144402645
346058199
267461021
287935018
989151756
348668969
556273495
997895853
95321369
938341707
276009971
101428817
899728485
999575096
385642796
181794009
75258...

result:

points 0.6280 ok K = 4116

Test #7:

score: 62.8
Acceptable Answer
time: 2ms = 1ms + 1ms
memory: 3548kb,3580kb

input:

1
100
38589601 573023388
6635272 692946586
153397181 811034102
859889237 493892802
259205483 364719660
954343124 427626481
959173918 753851930
975496695 577574806
311830132 29056811
509015429 310443549
588209966 697904208
31314024 836756664
249907127 458343750
355938610 284261099
221528639 337802970...

output:

4116
0101010011111111111111000010011100100100101111001000100010001101101101011001011000011011001010010100001000011011011111010011011101010000011101110111110100001100101100000011101011101001110011100110100011101001011110110101001011110100100011111111000010111110100110011000001110101100001111011011101...

input:

2
100 79 4116
0101010011111111111111000010011100100100101111001000100010001101101101011001011000011011001010010100001000011011011111010011011101010000011101110111110100001100101100000011101011101001110011100110100011101001011110110101001011110100100011111111000010111110100110011000001110101100001111...

output:

230017218
565349569
47782129
753851930
678112683
647428660
697904208
283703409
312668984
173256201
644234813
427626481
304813844
912323446
284261099
886592164
929134689
493892802
555567576
65699189
645479813
694103982
65190925
671520247
354050416
976551128
738019464
577574806
813237436
891060967
888...

result:

points 0.6280 ok K = 4116

Test #8:

score: 0
Runtime Error

input:

1
100
608812690 879292074
479028197 788306143
615995302 841820438
145257256 962764296
602711633 995581697
898256936 448106429
760128150 867194906
843820112 719060821
156799570 629004151
556234422 563271562
355032462 28734192
691911457 345245685
868932163 940932744
589136297 140594459
605248500 81637...

output:


result: