QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#82628#5482. Birthday Giftxiaowuc1AC ✓432ms3732kbC++171.9kb2023-02-28 15:34:502023-02-28 15:34:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 76ms
memory: 3592kb

input:

12345 200

output:

323756255

result:

ok single line: '323756255'

Test #2:

score: 0
Accepted
time: 22ms
memory: 3644kb

input:

100 87

output:

896364174

result:

ok single line: '896364174'

Test #3:

score: 0
Accepted
time: 30ms
memory: 3676kb

input:

100 35

output:

785970618

result:

ok single line: '785970618'

Test #4:

score: 0
Accepted
time: 71ms
memory: 3644kb

input:

5000 5

output:

176058968

result:

ok single line: '176058968'

Test #5:

score: 0
Accepted
time: 117ms
memory: 3652kb

input:

888888 88

output:

906317283

result:

ok single line: '906317283'

Test #6:

score: 0
Accepted
time: 151ms
memory: 3620kb

input:

9999999 99

output:

133442170

result:

ok single line: '133442170'

Test #7:

score: 0
Accepted
time: 247ms
memory: 3644kb

input:

101010101010 127

output:

893501348

result:

ok single line: '893501348'

Test #8:

score: 0
Accepted
time: 344ms
memory: 3732kb

input:

100000000000000 224

output:

106818918

result:

ok single line: '106818918'

Test #9:

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

input:

1 2

output:

1

result:

ok single line: '1'

Test #10:

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

input:

2 1

output:

0

result:

ok single line: '0'

Test #11:

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

input:

10 10

output:

17218742

result:

ok single line: '17218742'

Test #12:

score: 0
Accepted
time: 356ms
memory: 3648kb

input:

987654321012345 188

output:

687465868

result:

ok single line: '687465868'

Test #13:

score: 0
Accepted
time: 342ms
memory: 3652kb

input:

123123123123123 123

output:

281426738

result:

ok single line: '281426738'

Test #14:

score: 0
Accepted
time: 294ms
memory: 3696kb

input:

836692041405 205

output:

878852049

result:

ok single line: '878852049'

Test #15:

score: 0
Accepted
time: 359ms
memory: 3604kb

input:

686847356299056 65

output:

734639818

result:

ok single line: '734639818'

Test #16:

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

input:

8 8

output:

159456

result:

ok single line: '159456'

Test #17:

score: 0
Accepted
time: 432ms
memory: 3648kb

input:

9000000000000000 87

output:

824013175

result:

ok single line: '824013175'

Test #18:

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

input:

1 1

output:

1

result:

ok single line: '1'

Test #19:

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

input:

2 2

output:

0

result:

ok single line: '0'