QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#89055#5738. Square SumTTW#WA 21ms3416kbC++171.3kb2023-03-18 17:23:112023-03-18 17:23:15

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3260kb

input:

3 3
0 1 2

output:

1 4 4

result:

ok 3 number(s): "1 4 4"

Test #2:

score: 0
Accepted
time: 2ms
memory: 3288kb

input:

4 4
0 1 2 3

output:

4 8 4 0

result:

ok 4 number(s): "4 8 4 0"

Test #3:

score: 0
Accepted
time: 2ms
memory: 3288kb

input:

5 1
3

output:

4

result:

ok 1 number(s): "4"

Test #4:

score: 0
Accepted
time: 14ms
memory: 3308kb

input:

735134400 100000
4 4 1 2 3 4 4 4 5 4 3 4 1 1 1 1 2 0 1 4 4 5 4 1 0 0 1 3 0 4 0 5 3 0 3 0 5 4 0 0 3 2 5 3 2 4 3 4 2 1 3 3 2 2 2 3 1 0 1 2 3 4 3 5 4 4 0 1 5 2 2 3 3 2 4 3 5 5 1 3 1 1 4 3 4 3 4 5 2 4 1 3 2 0 5 0 0 5 5 1 2 0 3 4 0 4 1 0 1 4 5 5 3 1 3 0 3 5 0 4 2 0 4 0 0 0 4 0 2 2 2 4 5 3 0 2 0 4 1 4 1 2...

output:

1698693120 1698693120 1698693120 1698693120 0 1698693120 1698693120 1698693120 3397386240 1698693120 0 1698693120 1698693120 1698693120 1698693120 1698693120 1698693120 30888000 1698693120 1698693120 1698693120 3397386240 1698693120 1698693120 30888000 30888000 1698693120 0 30888000 1698693120 30888...

result:

ok 100000 numbers

Test #5:

score: 0
Accepted
time: 13ms
memory: 3340kb

input:

735134400 100000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 30888000 308...

result:

ok 100000 numbers

Test #6:

score: 0
Accepted
time: 17ms
memory: 3396kb

input:

536870912 100000
1 0 2 4 3 1 3 5 5 1 0 2 1 1 1 0 4 2 4 1 3 2 1 4 3 2 1 2 4 0 4 2 2 1 5 4 1 5 3 0 2 3 4 4 3 4 2 1 2 5 2 1 5 3 1 3 3 0 0 4 3 4 0 4 2 0 5 2 0 3 1 0 0 1 5 5 5 5 5 1 5 3 1 2 4 1 3 3 2 0 2 0 5 1 0 2 1 2 5 2 5 4 4 3 0 3 3 5 4 3 3 2 0 2 1 2 0 1 4 1 1 4 2 4 1 2 4 4 4 2 3 4 5 5 5 4 3 5 5 2 1 5...

output:

1073741824 536870912 1073741824 1073741824 0 1073741824 0 1073741824 1073741824 1073741824 536870912 1073741824 1073741824 1073741824 1073741824 536870912 1073741824 1073741824 1073741824 1073741824 0 1073741824 1073741824 1073741824 0 1073741824 1073741824 1073741824 1073741824 536870912 1073741824...

result:

ok 100000 numbers

Test #7:

score: 0
Accepted
time: 12ms
memory: 3312kb

input:

536870912 100000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 ...

result:

ok 100000 numbers

Test #8:

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

input:

536870912 100000
268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268435456 268...

output:

536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 ...

result:

ok 100000 numbers

Test #9:

score: 0
Accepted
time: 17ms
memory: 3296kb

input:

536870912 100000
504070704 500101584 484480320 75189632 133364432 237444928 506874208 477655312 261146688 36394912 312952944 260479168 77969872 60413040 249853392 288067360 129948656 311385424 444949024 339508400 62885472 368704208 379750624 528964784 158077280 415604832 393291776 342918080 20621644...

output:

0 1073741824 1073741824 0 1073741824 1073741824 0 1073741824 1073741824 1073741824 0 0 1073741824 0 1073741824 1073741824 0 1073741824 1073741824 0 0 1073741824 0 0 0 0 1073741824 0 1073741824 0 0 1073741824 1073741824 1073741824 0 0 0 1073741824 0 0 0 0 0 0 1073741824 1073741824 0 1073741824 0 0 0 ...

result:

ok 100000 numbers

Test #10:

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

input:

536870912 100000
485294080 49414144 71499776 405143552 295436288 188612608 153288704 515768320 24248320 34471936 173539328 437387264 413663232 516947968 112263168 442826752 346488832 22151168 244514816 194510848 259260416 115015680 21757952 496828416 79429632 518979584 65011712 74317824 439812096 44...

output:

1073741824 1073741824 0 0 0 0 0 0 1073741824 0 0 1073741824 1073741824 1073741824 1073741824 1073741824 0 1073741824 0 0 1073741824 0 0 1073741824 0 0 0 0 0 1073741824 1073741824 0 0 1073741824 0 0 1073741824 1073741824 1073741824 0 1073741824 1073741824 1073741824 1073741824 0 1073741824 0 0 0 1073...

result:

ok 100000 numbers

Test #11:

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

input:

536870912 100000
0 268435456 0 0 268435456 268435456 0 0 0 0 268435456 0 268435456 0 268435456 0 0 0 0 0 268435456 268435456 268435456 268435456 0 0 268435456 268435456 268435456 0 268435456 268435456 0 268435456 0 268435456 0 0 268435456 0 0 0 268435456 268435456 0 268435456 268435456 268435456 0 2...

output:

536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 ...

result:

ok 100000 numbers

Test #12:

score: -100
Wrong Answer
time: 12ms
memory: 3416kb

input:

779796616 100000
495020978 289673094 752654486 745889165 186463032 629831042 568084109 351140037 633863589 766446110 731514155 674603390 119159255 209998056 365491910 488229083 674872263 239261773 726348242 127803836 478298775 449657268 316649799 497847195 529645573 633328344 385144015 422155171 520...

output:

1569924096 0 0 1569924096 0 1569924096 1569924096 1569924096 1569924096 0 0 0 0 1569924096 0 0 0 1569924096 1569924096 0 0 1569924096 0 0 1569924096 0 0 0 1569924096 0 1569924096 0 0 1569924096 0 0 1569924096 0 1569924096 1569924096 0 0 0 1569924096 0 0 0 0 0 0 1569924096 1569924096 1569924096 0 0 1...

result:

wrong answer 5th numbers differ - expected: '784962048', found: '0'