QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#328675#6811. Alice's DollsReliaukAC ✓1138ms18776kbC++172.9kb2024-02-15 23:44:032024-02-15 23:44:04

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 17172kb

input:

1 3 1 2

output:

1
2
6
26

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 4ms
memory: 17592kb

input:

100 5 1 6

output:

1
600
363000
221433000
425510992
941092730

result:

ok 6 lines

Test #3:

score: 0
Accepted
time: 1035ms
memory: 18704kb

input:

82346 94247 998244352 998244352

output:

1
82346
791397598
40508009
538125741
435438716
697592329
964874802
317657163
799962739
585095577
16686097
449113834
769228973
331835396
374844347
218958949
104110468
158094364
333890471
898754640
11498373
509376414
878962890
373081322
784577837
472039442
921273818
635966440
395465507
275355856
33108...

result:

ok 94248 lines

Test #4:

score: 0
Accepted
time: 1138ms
memory: 18348kb

input:

99999 99998 1 1

output:

1
99999
17356471
681058015
897702913
273664856
341242002
872239399
469072873
314324010
366733079
438370760
733355951
836839610
300048400
309433479
458256580
792718955
518709315
637964452
7124024
647052287
379174959
801465042
656610000
821071425
723394325
932065530
543939213
40810170
153274766
279529...

result:

ok 99999 lines

Test #5:

score: 0
Accepted
time: 9ms
memory: 17692kb

input:

234 459 8713247 74362439

output:

1
550308667
652601851
21862568
312504180
301781771
955945774
241922434
687893799
220084008
951866075
223169979
261547613
851721240
108461996
645670062
647827677
740281647
567424949
65300355
783187507
824238091
706909540
715519504
74795499
263740113
795953643
525222901
990470578
720139891
531988015
3...

result:

ok 460 lines

Test #6:

score: 0
Accepted
time: 998ms
memory: 18636kb

input:

100000 100000 34457 34458

output:

1
110072884
866073590
736351474
206840805
363851986
895119597
144145068
753578218
113903056
711499733
430574479
231258052
694514889
284319691
530696819
535538312
933991851
868518537
888564382
239789947
182502325
355499336
74503434
691778894
327131524
233789093
41501704
639617307
916312185
394659685
...

result:

ok 100001 lines

Test #7:

score: 0
Accepted
time: 996ms
memory: 18776kb

input:

100000 100000 998244351 998244352

output:

1
50000
503486294
85094752
335515298
331724101
676123256
80958981
314512322
659052656
12751483
516505166
655297143
652329290
347750398
78055519
290808848
35067066
791903803
995363140
517288436
394436580
430863665
823972579
523698332
746439583
27677016
323067719
660639896
110677907
568717926
25289325...

result:

ok 100001 lines

Test #8:

score: 0
Accepted
time: 13ms
memory: 17408kb

input:

93248 34 1 499122177

output:

1
46624
177285358
111979882
696375359
818605358
237802954
608377035
863173334
196258366
607718397
364819065
360314917
233450239
952902294
131353496
959526592
687802720
477763385
488883348
507982668
818592811
76520370
194416851
590074140
13328434
672264252
42015845
921175397
849890303
603093773
61302...

result:

ok 35 lines

Test #9:

score: 0
Accepted
time: 497ms
memory: 18636kb

input:

53 99997 2394 7681238

output:

1
955048736
470514326
41111193
709347504
116606594
22612570
620495230
589459109
278168830
277523111
890862369
212779039
908656172
927315643
325078855
630813446
435720817
357034897
545024798
456613789
312453851
69393505
463880280
934933770
586168348
444543516
547460238
575392663
993322173
625521110
7...

result:

ok 99998 lines

Test #10:

score: 0
Accepted
time: 4ms
memory: 17620kb

input:

100000 0 123456789 234567890

output:

1

result:

ok single line: '1'