QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#854218#9963. Express RotationsqiuzxWA 235ms39516kbC++204.1kb2025-01-11 22:38:502025-01-11 22:38:50

詳細信息

Test #1:

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

input:

6
6 10 6 5 4 5

output:

16

result:

ok 1 number(s): "16"

Test #2:

score: 0
Accepted
time: 0ms
memory: 24340kb

input:

1
525434

output:

0

result:

ok 1 number(s): "0"

Test #3:

score: 0
Accepted
time: 0ms
memory: 28320kb

input:

20
724315 660084 703741 660084 33388 703741 724315 608476 703741 33388 660084 33388 703741 703741 724315 33388 660084 703741 703741 33388

output:

10450373

result:

ok 1 number(s): "10450373"

Test #4:

score: 0
Accepted
time: 0ms
memory: 30488kb

input:

1000
205212 781871 811133 847754 365647 686203 781871 811133 205212 811133 365647 553550 205212 365647 811133 205212 205212 781871 875225 781871 365647 344701 205212 875225 365647 365647 811133 781871 875225 811133 781871 365647 553550 686203 365647 79214 553550 686203 781871 781871 875225 811133 20...

output:

1703022119

result:

ok 1 number(s): "1703022119"

Test #5:

score: 0
Accepted
time: 0ms
memory: 30424kb

input:

1000
301641 35540 535041 598876 422289 932926 891853 928749 403425 515013 323155 468767 875308 397761 252409 674812 40987 889920 172600 98116 799381 718712 739731 228116 729441 314232 916892 391198 205018 977734 406583 970126 527675 752117 616274 614112 241590 226939 726732 976461 657267 705600 9482...

output:

40529669812

result:

ok 1 number(s): "40529669812"

Test #6:

score: 0
Accepted
time: 47ms
memory: 28992kb

input:

100000
94951 895049 212507 728671 498212 74168 617364 727973 327553 437083 222970 617364 575451 478998 352348 386134 274500 366753 57576 139115 368828 29040 930954 301558 521133 343205 520174 291315 53520 354416 89181 852743 480847 499918 602700 770649 61483 524841 957354 355385 376270 327553 402615...

output:

8404763653182

result:

ok 1 number(s): "8404763653182"

Test #7:

score: 0
Accepted
time: 97ms
memory: 36632kb

input:

500000
96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770 96770...

output:

0

result:

ok 1 number(s): "0"

Test #8:

score: 0
Accepted
time: 142ms
memory: 38804kb

input:

500000
129816 510350 129816 510350 510350 129816 510350 129816 510350 510350 510350 129816 129816 510350 510350 510350 510350 510350 129816 129816 510350 129816 129816 129816 129816 510350 129816 510350 129816 129816 510350 129816 510350 510350 129816 129816 129816 510350 129816 129816 510350 510350...

output:

32428426248

result:

ok 1 number(s): "32428426248"

Test #9:

score: 0
Accepted
time: 143ms
memory: 39028kb

input:

500000
294824 335847 938807 938807 938807 335847 294824 294824 335847 294824 335847 335847 938807 294824 294824 335847 335847 335847 294824 294824 335847 938807 294824 938807 335847 335847 335847 938807 938807 335847 938807 335847 938807 938807 294824 938807 294824 335847 938807 294824 335847 294824...

output:

154046626746

result:

ok 1 number(s): "154046626746"

Test #10:

score: 0
Accepted
time: 161ms
memory: 39024kb

input:

500000
382273 320210 382273 382273 843312 674692 674692 320210 320210 843312 382273 843312 674692 843312 674692 320210 674692 843312 320210 674692 843312 843312 843312 843312 674692 382273 320210 674692 843312 320210 674692 674692 674692 843312 320210 674692 382273 320210 843312 843312 674692 843312...

output:

299577484305

result:

ok 1 number(s): "299577484305"

Test #11:

score: 0
Accepted
time: 162ms
memory: 39444kb

input:

500000
249890 351331 351331 351331 351331 126347 351331 126347 351331 126347 616581 530898 530898 126347 249890 351331 530898 616581 249890 351331 616581 530898 530898 616581 351331 530898 126347 249890 351331 249890 530898 249890 351331 126347 616581 126347 616581 616581 530898 126347 249890 616581...

output:

248864555855

result:

ok 1 number(s): "248864555855"

Test #12:

score: 0
Accepted
time: 180ms
memory: 37968kb

input:

500000
94026 641203 702718 714723 525738 248544 748421 525738 94026 864039 748421 525738 94026 748421 748421 702718 580344 525738 819227 748421 748421 702718 702718 748421 525738 525738 714723 94026 94026 864039 94026 819227 819227 248544 248544 864039 94026 580344 248544 819227 641203 748421 525738...

output:

1023023617751

result:

ok 1 number(s): "1023023617751"

Test #13:

score: 0
Accepted
time: 218ms
memory: 39412kb

input:

500000
103295 870621 892810 331686 15987 647972 772524 994916 184758 517232 499499 605590 695105 459977 710069 702772 451750 400618 358392 470414 206695 500553 623696 874982 805356 103295 206695 19597 772524 267939 459977 73981 4791 18851 470414 795307 499499 470414 459977 459977 400618 994916 40017...

output:

8641129356811

result:

ok 1 number(s): "8641129356811"

Test #14:

score: 0
Accepted
time: 213ms
memory: 39064kb

input:

500000
37298 582477 97690 541999 281870 935680 512044 786878 904689 955151 976438 310602 946215 404416 512790 814945 660878 632854 116990 52377 774262 15509 506396 331821 16911 786613 422485 960070 504317 494521 188423 392620 816966 960273 7858 805633 273483 548662 80365 898508 527748 809716 492089 ...

output:

85730469360714

result:

ok 1 number(s): "85730469360714"

Test #15:

score: -100
Wrong Answer
time: 235ms
memory: 39516kb

input:

500000
416655 331564 819260 103525 618092 216371 116303 233195 499263 905925 621087 673616 369303 459733 135999 563095 780651 326581 983477 958860 597022 245943 755943 338262 880430 938175 862558 924991 496206 240830 202625 81771 162937 913613 350167 384650 838540 121902 498371 797434 837565 724332 ...

output:

790834097078211

result:

wrong answer 1st numbers differ - expected: '790834087104817', found: '790834097078211'