QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#104523#2987. 苹果树HuangHanSheng 100 ✓4ms14868kbC++14982b2023-05-10 22:19:102023-05-10 22:19:12

詳細信息

Test #1:

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

input:

8 983581962

output:

2989152

result:

ok single line: '2989152'

Test #2:

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

input:

8 515086111

output:

2989152

result:

ok single line: '2989152'

Test #3:

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

input:

295 149918390

output:

43893960

result:

ok single line: '43893960'

Test #4:

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

input:

470 31619872

output:

14096512

result:

ok single line: '14096512'

Test #5:

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

input:

357 527265852

output:

65944320

result:

ok single line: '65944320'

Test #6:

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

input:

1661 1000000007

output:

460130741

result:

ok single line: '460130741'

Test #7:

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

input:

1054 1000000007

output:

5968822

result:

ok single line: '5968822'

Test #8:

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

input:

1105 952247077

output:

219911874

result:

ok single line: '219911874'

Test #9:

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

input:

1674 821981573

output:

387637082

result:

ok single line: '387637082'

Test #10:

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

input:

1008 719885502

output:

644225778

result:

ok single line: '644225778'