QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#152528#6702. Stones in the BucketGuanYunchangAC ✓22ms4412kbC++14553b2023-08-28 11:05:152023-08-28 11:05:15

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3636kb

input:

4
3
1 1 0
4
2 2 2 2
3
0 1 4
1
1000000000

output:

2
0
3
0

result:

ok 4 number(s): "2 0 3 0"

Test #2:

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

input:

1117
33
941569937 726092914 727010359 7765372 85147698 226034704 430957397 690012188 507130442 797501882 635162155 159230168 519209938 874599298 394229092 840562882 790604785 404365317 201055932 846306030 538284769 767560597 989100484 910102919 156114543 743142429 790221319 144002373 730823403 97104...

output:

4211193781
3489319388
4015689082
4369484417
12451656301
3389745192
9279595149
7756415264
8458888261
9562054408
8819462646
8776257522
3213169624
849909175
9911233579
224339683
8383256653
4953209012
7534373352
9297501816
1839870320
3914938851
8950069661
7010274970
9453850869
8777334685
3992301260
8296...

result:

ok 1117 numbers