QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#235876#5482. Birthday Giftlmq26052003AC ✓204ms3608kbC++207.8kb2023-11-03 11:45:572023-11-03 11:45:58

詳細信息

Test #1:

score: 100
Accepted
time: 45ms
memory: 3556kb

input:

12345 200

output:

323756255

result:

ok single line: '323756255'

Test #2:

score: 0
Accepted
time: 21ms
memory: 3524kb

input:

100 87

output:

896364174

result:

ok single line: '896364174'

Test #3:

score: 0
Accepted
time: 20ms
memory: 3528kb

input:

100 35

output:

785970618

result:

ok single line: '785970618'

Test #4:

score: 0
Accepted
time: 40ms
memory: 3584kb

input:

5000 5

output:

176058968

result:

ok single line: '176058968'

Test #5:

score: 0
Accepted
time: 59ms
memory: 3584kb

input:

888888 88

output:

906317283

result:

ok single line: '906317283'

Test #6:

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

input:

9999999 99

output:

133442170

result:

ok single line: '133442170'

Test #7:

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

input:

101010101010 127

output:

893501348

result:

ok single line: '893501348'

Test #8:

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

input:

100000000000000 224

output:

106818918

result:

ok single line: '106818918'

Test #9:

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

input:

1 2

output:

1

result:

ok single line: '1'

Test #10:

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

input:

2 1

output:

0

result:

ok single line: '0'

Test #11:

score: 0
Accepted
time: 10ms
memory: 3568kb

input:

10 10

output:

17218742

result:

ok single line: '17218742'

Test #12:

score: 0
Accepted
time: 164ms
memory: 3608kb

input:

987654321012345 188

output:

687465868

result:

ok single line: '687465868'

Test #13:

score: 0
Accepted
time: 161ms
memory: 3580kb

input:

123123123123123 123

output:

281426738

result:

ok single line: '281426738'

Test #14:

score: 0
Accepted
time: 139ms
memory: 3560kb

input:

836692041405 205

output:

878852049

result:

ok single line: '878852049'

Test #15:

score: 0
Accepted
time: 173ms
memory: 3508kb

input:

686847356299056 65

output:

734639818

result:

ok single line: '734639818'

Test #16:

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

input:

8 8

output:

159456

result:

ok single line: '159456'

Test #17:

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

input:

9000000000000000 87

output:

824013175

result:

ok single line: '824013175'

Test #18:

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

input:

1 1

output:

1

result:

ok single line: '1'

Test #19:

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

input:

2 2

output:

0

result:

ok single line: '0'