QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#405534#4944. 假面hyforces#70 433ms3784kbC++202.7kb2024-05-06 06:09:072024-05-06 06:09:08

详细

Test #1:

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

input:

5
3 2 3 5 2
21
0 4 57200194 62560282
0 1 146714842 190677962
0 3 421682737 866825565
0 2 147205019 326165492
0 5 43044930 174129591
0 5 471737667 946078665
0 1 67470072 85631701
0 3 424723162 491392606
0 1 161738068 214618699
0 2 167409685 828201389
1 5 2 1 4 5 3
0 1 15605041 17495347
0 5 185545979 ...

output:

107368698 189599100 687600238 324320433 687600238 
606654499 906006418 648113700 648113700 185844743 
856212861 253665492 395756888 490853466 
720424385 963622540 990903428 277019498 42763209 
720424385 277019498 990903428 42763209 963622540 
458983827 545373647 251091757 468284676 272754800 
340362...

result:

ok 34 numbers

Test #2:

score: 10
Accepted
time: 147ms
memory: 3784kb

input:

60
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98
199992
0 9 444583729 889658122
0 28 444583729 889658122
0 11 444583729 889658122
0 35 444583729 889658122
0 39 444583729...

output:

764196322 518700730 489720477 267683315 944759499 489706246 810974269 848295414 958825009 769587032 100148014 509434560 232856289 2353109 212130067 129459833 409889791 142582698 58894087 707314398 178109019 761720055 518483857 248114660 919049978 86715058 22798800 63432291 307970379 715642039 548359...

result:

ok 23057 numbers

Test #3:

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

input:

60
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
23
0 59 89817677 237987517
0 45 9286825 11937381
0 6 186458289 659261035
0 10 357086956 553050724
0 5 475088880 805335745
0 47 400707619 741220104
0 2 195821006 203870958
0 5 14...

output:

304278377 304278377 304278377 450544203 304278377 304278377 304278377 637957920 341116069 865590646 304278377 304278377 304278377 304278377 366627363 304278377 304278377 304278377 304278377 485008584 853044587 977460394 304278377 304278377 304278377 304278377 304278377 304278377 304278377 304278377 ...

result:

ok 339 numbers

Test #4:

score: 10
Accepted
time: 140ms
memory: 3596kb

input:

60
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
199994
0 13 601080363 879374736
0 41 13604970 620358714
0 4 474749303 543941493
0 11 204080001 233457854
0 58 438081964 812786834
0 23 884507813 995739274
0 53 148575990 2570380...

output:

603671434 346307002 472937431 420751207 126823661 436769552 525776156 504666874 886609578 97379102 44433317 490965368 588872603 205364900 764004244 581616782 121073920 606101615 383989028 659316281 311182521 375247790 393444793 704852419 861322040 638325251 427096039 140931152 394672817 201550761 87...

result:

ok 23287 numbers

Test #5:

score: 10
Accepted
time: 147ms
memory: 3532kb

input:

60
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98
199995
0 41 13604970 620358714
0 4 474749303 543941493
0 11 204080001 233457854
0 58 438081964 812786834
0 23 884507813 ...

output:

880925494 290653588 521390872 861342120 187391714 904328230 690519955 527946830 35021728 836362841 191560014 791376646 461144894 548639684 586467108 818063632 59033652 43706329 886954774 14312194 291313471 818481148 150874524 885699229 215410211 792329674 164791319 136544870 429441970 976795291 7851...

result:

ok 22904 numbers

Test #6:

score: 10
Accepted
time: 102ms
memory: 3524kb

input:

60
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98
199996
0 41 13604970 620358714
0 4 474749303 543941493
0 11 204080001 233457854
0 58 438081964 812786834
0 23 884507813 ...

output:

31311934 458218831 612517627 520630081 834524568 735573278 602359531 185925983 117136700 16578877 668810973 149004438 695957963 757993180 756227637 877038225 676747765 747833842 422848272 590332056 36037874 559204662 863781697 453196603 254777940 641553045 491620260 317701301 731946951 649095760 437...

result:

ok 60 numbers

Test #7:

score: 10
Accepted
time: 136ms
memory: 3728kb

input:

60
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98
199997
0 4 233 233
0 11 233 233
0 58 233 233
0 23 233 233
0 53 233 233
0 45 233 233
0 11 233 233
0 31 233 233
0 55 233 2...

output:

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 0 0 0 0 0 0 0...

result:

ok 23920 numbers

Test #8:

score: 0
Wrong Answer
time: 424ms
memory: 3648kb

input:

200
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98 82 10 68 98 87 7 20 29 33 4 71 9 41 97 19 47 22 80 65 42 94 100 65 15 57 92 66 37 52 29 8 22 96 38 94 29 12 30 5 64 39 ...

output:

914686810 996638766 843596591 878580324 926585548 806810442 570180749 27338236 293041288 400286454 243106519 36329251 455383306 106158405 256715241 448896239 137150772 132546343 196947304 959829938 132881983 165180775 669435527 173043628 752089222 727247426 411404028 528448964 729177713 145600935 85...

result:

wrong answer 1st numbers differ - expected: '421737305', found: '914686810'

Test #9:

score: 0
Wrong Answer
time: 419ms
memory: 3592kb

input:

200
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98 82 10 68 98 87 7 20 29 33 4 71 9 41 97 19 47 22 80 65 42 94 100 65 15 57 92 66 37 52 29 8 22 96 38 94 29 12 30 5 64 39 ...

output:

430853592 123634027 619545051 1942742 333009351 735148196 317765517 849614878 822260326 995294160 762382890 588828231 953940558 926041766 53071370 415817035 180272088 844485362 919574812 942044427 954462373 285569335 3699402 625763437 617566807 958414885 949586934 51982749 762538006 47269165 6606377...

result:

wrong answer 1st numbers differ - expected: '971043096', found: '430853592'

Test #10:

score: 0
Wrong Answer
time: 433ms
memory: 3584kb

input:

200
93 22 28 60 27 27 37 69 30 31 24 36 3 59 68 57 43 74 20 38 25 71 27 81 74 71 82 26 28 6 30 58 96 46 68 65 51 9 79 85 52 100 61 69 13 87 40 71 79 2 3 93 57 100 87 66 45 41 32 98 82 10 68 98 87 7 20 29 33 4 71 9 41 97 19 47 22 80 65 42 94 100 65 15 57 92 66 37 52 29 8 22 96 38 94 29 12 30 5 64 39 ...

output:

461201929 646315854 652044206 976682478 532940543 90855181 790405528 612148091 163802738 134922345 502393843 617909320 537839070 412705507 188430689 677003748 520036541 245258345 706477417 634965341 181392428 842968793 397491959 391801909 161051240 476032661 964714132 629511324 935195386 814580815 2...

result:

wrong answer 1st numbers differ - expected: '358072467', found: '461201929'