QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#104472#2987. 苹果树GuanYunchang100 ✓7ms14692kbC++14979b2023-05-10 19:40:242023-05-10 19:40:27

详细

Test #1:

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

input:

8 983581962

output:

2989152

result:

ok single line: '2989152'

Test #2:

score: 10
Accepted
time: 2ms
memory: 3592kb

input:

8 515086111

output:

2989152

result:

ok single line: '2989152'

Test #3:

score: 10
Accepted
time: 3ms
memory: 4808kb

input:

295 149918390

output:

43893960

result:

ok single line: '43893960'

Test #4:

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

input:

470 31619872

output:

14096512

result:

ok single line: '14096512'

Test #5:

score: 10
Accepted
time: 3ms
memory: 5256kb

input:

357 527265852

output:

65944320

result:

ok single line: '65944320'

Test #6:

score: 10
Accepted
time: 7ms
memory: 14580kb

input:

1661 1000000007

output:

460130741

result:

ok single line: '460130741'

Test #7:

score: 10
Accepted
time: 6ms
memory: 9832kb

input:

1054 1000000007

output:

5968822

result:

ok single line: '5968822'

Test #8:

score: 10
Accepted
time: 2ms
memory: 10520kb

input:

1105 952247077

output:

219911874

result:

ok single line: '219911874'

Test #9:

score: 10
Accepted
time: 5ms
memory: 14692kb

input:

1674 821981573

output:

387637082

result:

ok single line: '387637082'

Test #10:

score: 10
Accepted
time: 6ms
memory: 9676kb

input:

1008 719885502

output:

644225778

result:

ok single line: '644225778'