QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#761781#7923. Ferris Wheelgg_gongAC ✓5291ms429720kbC++204.0kb2024-11-19 10:14:132024-11-19 10:14:18

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 84ms
memory: 173724kb

input:

3 2

output:

6

result:

ok single line: '6'

Test #2:

score: 0
Accepted
time: 75ms
memory: 172268kb

input:

5 3

output:

372

result:

ok single line: '372'

Test #3:

score: 0
Accepted
time: 77ms
memory: 172180kb

input:

2023 1126

output:

900119621

result:

ok single line: '900119621'

Test #4:

score: 0
Accepted
time: 4968ms
memory: 423824kb

input:

2882880 2892778

output:

421329574

result:

ok single line: '421329574'

Test #5:

score: 0
Accepted
time: 5025ms
memory: 428668kb

input:

2993760 2738336

output:

436950672

result:

ok single line: '436950672'

Test #6:

score: 0
Accepted
time: 4967ms
memory: 429720kb

input:

2948400 2885387

output:

4079921

result:

ok single line: '4079921'

Test #7:

score: 0
Accepted
time: 5032ms
memory: 423548kb

input:

2827440 2802363

output:

243025786

result:

ok single line: '243025786'

Test #8:

score: 0
Accepted
time: 5291ms
memory: 415588kb

input:

2962575 2720060

output:

651075152

result:

ok single line: '651075152'

Test #9:

score: 0
Accepted
time: 5259ms
memory: 416560kb

input:

2927925 2880541

output:

547809301

result:

ok single line: '547809301'

Test #10:

score: 0
Accepted
time: 5219ms
memory: 413496kb

input:

2837835 2955737

output:

66014301

result:

ok single line: '66014301'

Test #11:

score: 0
Accepted
time: 5251ms
memory: 413312kb

input:

2993445 2802568

output:

852155961

result:

ok single line: '852155961'

Test #12:

score: 0
Accepted
time: 4983ms
memory: 426800kb

input:

3000000 2721531

output:

330139745

result:

ok single line: '330139745'

Test #13:

score: 0
Accepted
time: 5096ms
memory: 397816kb

input:

2999999 2874068

output:

11487172

result:

ok single line: '11487172'

Test #14:

score: 0
Accepted
time: 83ms
memory: 172808kb

input:

1 2879803

output:

2879803

result:

ok single line: '2879803'

Test #15:

score: 0
Accepted
time: 84ms
memory: 174560kb

input:

2 1634023

output:

363699315

result:

ok single line: '363699315'

Test #16:

score: 0
Accepted
time: 80ms
memory: 173500kb

input:

3 1133070

output:

941531760

result:

ok single line: '941531760'

Test #17:

score: 0
Accepted
time: 88ms
memory: 172688kb

input:

4 2975012

output:

600544573

result:

ok single line: '600544573'

Test #18:

score: 0
Accepted
time: 83ms
memory: 172948kb

input:

5 478043

output:

284058138

result:

ok single line: '284058138'

Test #19:

score: 0
Accepted
time: 80ms
memory: 173804kb

input:

6 377374

output:

21417458

result:

ok single line: '21417458'

Test #20:

score: 0
Accepted
time: 1114ms
memory: 235360kb

input:

575199 2998538

output:

985915533

result:

ok single line: '985915533'

Test #21:

score: 0
Accepted
time: 2393ms
memory: 304616kb

input:

1566414 2864371

output:

555268438

result:

ok single line: '555268438'

Test #22:

score: 0
Accepted
time: 1174ms
memory: 240360kb

input:

759957 2868981

output:

485958800

result:

ok single line: '485958800'

Test #23:

score: 0
Accepted
time: 2537ms
memory: 288240kb

input:

1906997 2799171

output:

340977363

result:

ok single line: '340977363'

Test #24:

score: 0
Accepted
time: 4880ms
memory: 397132kb

input:

2420926 497282

output:

927874930

result:

ok single line: '927874930'

Test #25:

score: 0
Accepted
time: 5059ms
memory: 408120kb

input:

2660337 2477085

output:

817341716

result:

ok single line: '817341716'

Test #26:

score: 0
Accepted
time: 5079ms
memory: 399660kb

input:

2661314 2721730

output:

576896798

result:

ok single line: '576896798'

Test #27:

score: 0
Accepted
time: 576ms
memory: 207324kb

input:

353896 2925858

output:

274269675

result:

ok single line: '274269675'

Test #28:

score: 0
Accepted
time: 5123ms
memory: 395224kb

input:

2726809 819583

output:

864442996

result:

ok single line: '864442996'

Test #29:

score: 0
Accepted
time: 5117ms
memory: 396956kb

input:

2893369 2895789

output:

521969424

result:

ok single line: '521969424'

Test #30:

score: 0
Accepted
time: 5091ms
memory: 396116kb

input:

2858441 2736227

output:

357358178

result:

ok single line: '357358178'

Test #31:

score: 0
Accepted
time: 5120ms
memory: 396296kb

input:

2954587 744730

output:

540167871

result:

ok single line: '540167871'

Test #32:

score: 0
Accepted
time: 2543ms
memory: 292280kb

input:

1902149 2964684

output:

967678819

result:

ok single line: '967678819'

Test #33:

score: 0
Accepted
time: 5111ms
memory: 397968kb

input:

2906083 2818150

output:

800415339

result:

ok single line: '800415339'

Test #34:

score: 0
Accepted
time: 1222ms
memory: 236132kb

input:

947213 2843556

output:

704887450

result:

ok single line: '704887450'

Test #35:

score: 0
Accepted
time: 2281ms
memory: 284848kb

input:

1068401 2866144

output:

643696823

result:

ok single line: '643696823'

Test #36:

score: 0
Accepted
time: 4773ms
memory: 403940kb

input:

2097152 2706726

output:

879969833

result:

ok single line: '879969833'

Test #37:

score: 0
Accepted
time: 2444ms
memory: 298476kb

input:

1594323 1385645

output:

166289728

result:

ok single line: '166289728'

Test #38:

score: 0
Accepted
time: 2566ms
memory: 301360kb

input:

1953125 2702955

output:

356924892

result:

ok single line: '356924892'

Test #39:

score: 0
Accepted
time: 1191ms
memory: 234520kb

input:

823543 469787

output:

217410289

result:

ok single line: '217410289'

Test #40:

score: 0
Accepted
time: 2521ms
memory: 291252kb

input:

1771561 2338083

output:

17307265

result:

ok single line: '17307265'

Test #41:

score: 0
Accepted
time: 582ms
memory: 206192kb

input:

371293 2739508

output:

768654866

result:

ok single line: '768654866'

Test #42:

score: 0
Accepted
time: 78ms
memory: 163276kb

input:

1278612 1

output:

1

result:

ok single line: '1'

Test #43:

score: 0
Accepted
time: 79ms
memory: 163700kb

input:

2949300 1

output:

1

result:

ok single line: '1'