QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#317339#7365. 东方永夜抄locsey100 ✓416ms29240kbC++143.2kb2024-01-28 21:07:472024-01-28 21:07:47

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 2ms
memory: 7948kb

input:

729 8 484700931
300 598694964
423 187474540
314 419022666
254 94296176
129 888635716
221 631534755
219 448268736
43 487182990

output:

599001030

result:

ok single line: '599001030'

Test #2:

score: 0
Accepted
time: 2ms
memory: 8176kb

input:

761 8 119599063
1 420201406
2 187241921
3 264743797
4 55963177
5 69498518
6 634982960
7 645203226
8 920001009

output:

114033655

result:

ok single line: '114033655'

Test #3:

score: 0
Accepted
time: 0ms
memory: 8176kb

input:

840 6 435950652
52 883838625
38 308350134
11 289251261
18 150936562
9 234103210
42 763142373

output:

616532808

result:

ok single line: '616532808'

Subtask #2:

score: 10
Accepted

Test #4:

score: 10
Accepted
time: 26ms
memory: 22836kb

input:

604314 0 881389884

output:

110655526

result:

ok single line: '110655526'

Test #5:

score: 0
Accepted
time: 24ms
memory: 29240kb

input:

1000000 0 715300117

output:

190121322

result:

ok single line: '190121322'

Subtask #3:

score: 40
Accepted

Dependency #1:

100%
Accepted

Test #6:

score: 40
Accepted
time: 22ms
memory: 8164kb

input:

40223 10 593585017
715 890967134
1318 849296717
823 911337804
1918 176598406
2309 108880127
224 458183236
5170 703142296
4283 596249924
7136 89478205
8789 657842023

output:

552575963

result:

ok single line: '552575963'

Test #7:

score: 0
Accepted
time: 3ms
memory: 7960kb

input:

10954 8 853958597
6596 115400004
3966 669869358
8055 743820900
9192 794938837
8056 664067569
5460 731018809
6880 301933643
7397 557935927

output:

561310417

result:

ok single line: '561310417'

Test #8:

score: 0
Accepted
time: 15ms
memory: 8392kb

input:

28120 8 561521248
1 338088977
2 581305260
3 315028698
4 109636883
5 559631571
6 97956114
7 60416992
8 214959924

output:

597166133

result:

ok single line: '597166133'

Test #9:

score: 0
Accepted
time: 7ms
memory: 8252kb

input:

39924 5 481610966
145 569114922
59 8553440
17 801252136
474 151555415
138 718869412

output:

485182236

result:

ok single line: '485182236'

Test #10:

score: 0
Accepted
time: 11ms
memory: 8092kb

input:

19028 8 41690106
14 752756915
132 746798045
274 98614293
90 861703411
262 929499320
569 242532618
406 745640544
121 196234608

output:

117683904

result:

ok single line: '117683904'

Subtask #4:

score: 30
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Test #11:

score: 30
Accepted
time: 107ms
memory: 27676kb

input:

874265 10 308033832
374297 279929254
709017 319550038
830440 122314571
606177 26806898
660444 937870938
135779 657710550
873073 213903164
631100 707271029
585743 624583283
137677 613755259

output:

776113384

result:

ok single line: '776113384'

Test #12:

score: 0
Accepted
time: 416ms
memory: 25836kb

input:

725285 9 297317374
1 814140258
2 86905144
3 310822963
4 424488138
5 592417943
6 183038761
7 614214901
8 291694901
9 667105819

output:

365242311

result:

ok single line: '365242311'

Test #13:

score: 0
Accepted
time: 204ms
memory: 23836kb

input:

698618 6 635016976
505 116048483
261 70557469
1318 300251257
3063 176119864
2609 264787001
4915 780895495

output:

258472668

result:

ok single line: '258472668'

Test #14:

score: 0
Accepted
time: 414ms
memory: 28604kb

input:

926856 8 432940488
6291 56360417
8565 651546050
27733 773775836
36694 803185429
48461 777616345
27968 88173681
49288 891332134
68846 761774091

output:

395457968

result:

ok single line: '395457968'

Test #15:

score: 0
Accepted
time: 364ms
memory: 28948kb

input:

1000000 10 265138665
75514 821123026
65828 290849402
251075 976740055
220694 933249168
94309 799512755
528228 36542816
436109 339663045
510556 711616754
117194 322569280
587500 221334826

output:

141214508

result:

ok single line: '141214508'