QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#839275#9923. Ma Meilleure Ennemieucup-team4125AC ✓1063ms15836kbC++174.0kb2025-01-01 16:13:292025-01-01 16:13:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 4

output:

6

result:

ok 1 number(s): "6"

Test #2:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

2338 1470

output:

18530141

result:

ok 1 number(s): "18530141"

Test #3:

score: 0
Accepted
time: 997ms
memory: 15576kb

input:

941958815880242160 945059392259579928

output:

57894579

result:

ok 1 number(s): "57894579"

Test #4:

score: 0
Accepted
time: 1056ms
memory: 15688kb

input:

876240758958364800 893076802030549616

output:

620071951

result:

ok 1 number(s): "620071951"

Test #5:

score: 0
Accepted
time: 881ms
memory: 15380kb

input:

784965679900201800 821160182532263553

output:

66266543

result:

ok 1 number(s): "66266543"

Test #6:

score: 0
Accepted
time: 817ms
memory: 15444kb

input:

511140442725712800 686753968601283360

output:

297358720

result:

ok 1 number(s): "297358720"

Test #7:

score: 0
Accepted
time: 969ms
memory: 15740kb

input:

897612484786617600 946301485716311910

output:

898294924

result:

ok 1 number(s): "898294924"

Test #8:

score: 0
Accepted
time: 1063ms
memory: 15628kb

input:

876240758958364800 949973670837969766

output:

258455620

result:

ok 1 number(s): "258455620"

Test #9:

score: 0
Accepted
time: 898ms
memory: 15672kb

input:

657180569218773600 863561658282273171

output:

674933697

result:

ok 1 number(s): "674933697"

Test #10:

score: 0
Accepted
time: 250ms
memory: 9208kb

input:

9350130049860600 186648010357925450

output:

70597352

result:

ok 1 number(s): "70597352"

Test #11:

score: 0
Accepted
time: 131ms
memory: 6396kb

input:

890488576177200 656051601794505564

output:

18986311

result:

ok 1 number(s): "18986311"

Test #12:

score: 0
Accepted
time: 1ms
memory: 3852kb

input:

301180038799975436 468464504626007448

output:

288952066

result:

ok 1 number(s): "288952066"

Test #13:

score: 0
Accepted
time: 1ms
memory: 3868kb

input:

523580256903724660 763948483254956750

output:

809203657

result:

ok 1 number(s): "809203657"

Test #14:

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

input:

789351011022563115 821578006156306391

output:

498840902

result:

ok 1 number(s): "498840902"

Test #15:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

999999999999999737 999999999999999992

output:

716070890

result:

ok 1 number(s): "716070890"

Test #16:

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

input:

999999999999999967 999999999999999976

output:

716070874

result:

ok 1 number(s): "716070874"

Test #17:

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

input:

999999874000003969 999999879650092039

output:

877014122

result:

ok 1 number(s): "877014122"

Test #18:

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

input:

999999274000130869 999999780452875480

output:

492898975

result:

ok 1 number(s): "492898975"

Test #19:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

999941001154992503 999975909388637582

output:

155276407

result:

ok 1 number(s): "155276407"

Test #20:

score: 0
Accepted
time: 1ms
memory: 3856kb

input:

999815008942884521 999872058299052785

output:

547534325

result:

ok 1 number(s): "547534325"

Test #21:

score: 0
Accepted
time: 965ms
memory: 15740kb

input:

897612484786617600 952878466220498188

output:

294147460

result:

ok 1 number(s): "294147460"

Test #22:

score: 0
Accepted
time: 849ms
memory: 15720kb

input:

961727662271376000 974988801671467969

output:

572742162

result:

ok 1 number(s): "572742162"

Test #23:

score: 0
Accepted
time: 1058ms
memory: 15836kb

input:

876240758958364800 893903040913665744

output:

435836298

result:

ok 1 number(s): "435836298"

Test #24:

score: 0
Accepted
time: 970ms
memory: 15736kb

input:

897612484786617600 952878466220498188

output:

294147460

result:

ok 1 number(s): "294147460"

Test #25:

score: 0
Accepted
time: 841ms
memory: 15536kb

input:

970391875444992000 980657019550811949

output:

815016337

result:

ok 1 number(s): "815016337"

Test #26:

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

input:

1 1000000000000000000

output:

716070898

result:

ok 1 number(s): "716070898"

Test #27:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

916327 9000044616510005

output:

329767168

result:

ok 1 number(s): "329767168"

Test #28:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

7163391 998244353998244353

output:

438645041

result:

ok 1 number(s): "438645041"

Test #29:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

4033 4090

output:

392924428

result:

ok 1 number(s): "392924428"

Extra Test:

score: 0
Extra Test Passed