QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#114477#2987. 苹果树legenc6y100 ✓28ms18332kbC++14946b2023-06-22 08:57:092023-06-22 08:57:11

詳細信息

Test #1:

score: 10
Accepted
time: 1ms
memory: 3888kb

input:

8 983581962

output:

2989152

result:

ok single line: '2989152'

Test #2:

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

input:

8 515086111

output:

2989152

result:

ok single line: '2989152'

Test #3:

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

input:

295 149918390

output:

43893960

result:

ok single line: '43893960'

Test #4:

score: 10
Accepted
time: 4ms
memory: 6628kb

input:

470 31619872

output:

14096512

result:

ok single line: '14096512'

Test #5:

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

input:

357 527265852

output:

65944320

result:

ok single line: '65944320'

Test #6:

score: 10
Accepted
time: 24ms
memory: 18332kb

input:

1661 1000000007

output:

460130741

result:

ok single line: '460130741'

Test #7:

score: 10
Accepted
time: 12ms
memory: 12336kb

input:

1054 1000000007

output:

5968822

result:

ok single line: '5968822'

Test #8:

score: 10
Accepted
time: 9ms
memory: 13032kb

input:

1105 952247077

output:

219911874

result:

ok single line: '219911874'

Test #9:

score: 10
Accepted
time: 28ms
memory: 16616kb

input:

1674 821981573

output:

387637082

result:

ok single line: '387637082'

Test #10:

score: 10
Accepted
time: 11ms
memory: 12016kb

input:

1008 719885502

output:

644225778

result:

ok single line: '644225778'