QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#311993 | #4550. 魔法小程序 | ahihi1234 | 4 | 173ms | 26368kb | C++14 | 2.3kb | 2024-01-23 09:30:44 | 2024-01-23 09:30:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 2
Accepted
time: 1ms
memory: 5576kb
input:
1 1000000000 1 -936011409
output:
1 1000000000 1 -936011409
result:
ok 4 lines
Test #2:
score: 2
Accepted
time: 1ms
memory: 5628kb
input:
100 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 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 -721990965
output:
100 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 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 -721990965
result:
ok 4 lines
Test #3:
score: 0
Wrong Answer
time: 1ms
memory: 5780kb
input:
1 6 23 55820894 -293906948 148612069 -584163534 -911708346 24543426 187290992 435107981 626805047 -248228938 -383874185 363187370 -353805453 375550326 647803595 -407628381 -898991039 -304856739 191645789 1124066752 680974642 -811712993 -2088860541
output:
1 6 23 55820894 -238086054 -145294879 -435551465 -1495871880 -887164920 211834418 622398973 1061913028 378576109 -632103123 -20686815 9381917 21744873 1023353921 240175214 -1306619420 -1203847778 -113210950 1315712541 1805041394 -130738351 -2900573534
result:
wrong answer 4th lines differ - expected: '55820894 -349727842 442519017 ...715345379 -437255659 -785784890', found: '55820894 -238086054 -145294879...05041394 -130738351 -2900573534'
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 5656kb
input:
99 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 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 100 445810606 1031631641 702231761 1534897157 1047717922 1659464837 2312474051 1439397240 745467972...
output:
99 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 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 100 445810606 1477442247 1733863402 2237128918 2582615079 2707182759 3971938888 3751871291 2184865...
result:
wrong answer 4th lines differ - expected: '445810606 585821035 -329399880...287756019 -762031402 -647046792', found: '445810606 1477442247 173386340...499886515 5450099094 4041020900'
Test #5:
score: 0
Wrong Answer
time: 1ms
memory: 5576kb
input:
2 2 3 100 -686129665 35876103 -488216812 -124054881 -1029428388 -1314932665 -1092700247 587763457 -1736527511 526245832 -2278717991 -888183008 -508509558 1485157690 -2014492982 1221276186 -3410794048 -1730304272 401100001 1420756355 -1618185352 -7934377 -3781919754 -4519428233 -306143832 825355160 -...
output:
2 2 3 100 -686129665 -650253562 -452340709 -612271693 -1153483269 -2344361053 -2407632912 -504936790 -1148764054 -1210281679 -1752472159 -3166900999 -1396692566 976648132 -529335292 -793216796 -2189517862 -5141098320 -1329204271 1821856356 -197428997 -1626119729 -3789854131 -8301347987 -4825572065 ...
result:
wrong answer 4th lines differ - expected: '-686129665 722005768 197912853...171892695 -890417820 -505209105', found: '-686129665 -650253562 -4523407...0388308 -2705523694 -5709372144'
Test #6:
score: 0
Wrong Answer
time: 1ms
memory: 5856kb
input:
3 96 17 5 100 744557150 312956205 -232481466 622053556 964503221 -19888238 95601348 476374815 1218083889 525923910 615110966 1285853725 557956221 417508356 877856576 591643207 1432424631 886186008 1785588008 1671778983 2045301406 1863496730 2563886140 3318560220 2554355320 2565783914 2192316381 1599...
output:
3 96 17 5 100 744557150 1057513355 80474739 389572090 1586556777 944614983 75713110 571976163 1694458704 1744007799 1141034876 1900964691 1843809946 975464577 1295364932 1469499783 2024067838 2318610639 2671774016 3457366991 3717080389 3908798136 4427382870 5882446360 5872915540 5120139234 47581002...
result:
wrong answer 4th lines differ - expected: '744557150 -431600945 -54543767...-595196594 562278310 -902292188', found: '744557150 1057513355 80474739 ... 1665369247 655412347 624495820'
Test #7:
score: 0
Runtime Error
input:
100 3 1 2 2 1 2 1 1 1 2 2 2 2 3 2 3 1 3 3 3 1 1 2 1 3 3 3 3 2 2 1 2 3 1 1 2 1 1 1 2 2 3 3 2 2 3 2 3 2 1 3 2 2 3 1 3 2 1 3 1 2 1 2 3 2 1 1 3 1 1 3 2 3 3 3 1 1 1 1 2 2 1 3 3 2 1 3 2 2 3 1 2 2 1 1 3 2 1 1 2 100 31809228 -604221725 382299234 -653857460 -1624950875 -1291171930 -480603653 -1554880466 3731...
output:
result:
Test #8:
score: 0
Runtime Error
input:
100 2 4 3 2 4 3 2 2 3 3 2 3 3 3 4 2 4 4 2 3 2 4 3 4 4 2 3 4 2 3 3 3 2 4 3 2 3 3 4 2 2 4 2 4 3 3 2 3 3 4 4 4 4 2 3 4 3 2 2 3 2 2 4 4 3 4 3 4 4 2 4 2 2 3 3 3 4 4 3 3 3 3 4 2 3 2 2 3 4 2 4 3 4 4 2 3 3 2 2 3 100 -875645333 -1311177210 -1317960106 -2118530243 -2205946577 -2272768465 -1982014317 -16280738...
output:
result:
Test #9:
score: 0
Runtime Error
input:
1000 98 52 28 92 92 18 100 38 3 97 87 8 82 95 23 40 63 16 60 29 59 64 85 18 49 48 12 5 97 75 74 31 44 60 37 3 4 12 94 68 65 43 59 28 99 73 77 34 49 17 19 96 35 91 80 69 58 18 86 60 89 19 87 32 82 16 57 92 63 35 5 7 37 5 55 89 82 45 63 6 56 93 18 73 93 79 24 62 7 33 19 93 80 87 64 40 79 82 51 21 39 5...
output:
result:
Test #10:
score: 0
Wrong Answer
time: 1ms
memory: 5888kb
input:
5 4 1 3 1 3 1000 531784716 786474104 3294886 -290673213 -136514704 30427191 -365955965 199469692 -505429005 -3884504 -746650108 -1103793657 -174829337 480327131 -340390021 332146782 -1313147940 -1574754413 -1799978323 -1053346405 -1986097362 -2723225288 -3978103117 -4256389199 -874381027 -284914709 ...
output:
5 4 1 3 1 3 1000 531784716 1318258820 789768990 -287378327 -427187917 -106087513 -335528774 -166486273 -305959313 -509313509 -750534612 -1850443765 -1278622994 305497794 139937110 -8243239 -981001158 -2887902353 -3374732736 -2853324728 -3039443767 -4709322650 -6701328405 -8234492316 -5130770226 -11...
result:
wrong answer 4th lines differ - expected: '531784716 254689388 -783179218...3 195331243 811690088 965328844', found: '531784716 1318258820 789768990...0451819 -5709002947 -3372669246'
Test #11:
score: 0
Runtime Error
input:
2333 2 1 2 1 2 2 1 1 1 2 2 2 1 2 1 2 1 1 1 2 2 2 2 2 1 1 2 2 2 2 2 1 2 2 1 1 2 1 2 2 1 1 1 2 2 2 2 2 1 2 2 2 1 1 1 2 1 2 1 1 2 2 2 1 1 1 2 2 2 2 1 2 2 2 2 2 2 1 1 2 2 2 2 2 1 2 2 1 2 1 1 1 2 2 1 2 2 2 2 2 1 2 2 1 2 1 2 2 1 1 2 2 2 1 2 1 1 2 2 2 1 2 2 2 2 2 1 2 1 1 1 1 1 1 2 2 2 1 2 2 1 2 1 2 1 2 2 2...
output:
result:
Test #12:
score: 0
Runtime Error
input:
10000 1 1 3 2 3 1 1 1 3 1 1 3 2 2 1 2 2 1 2 1 3 3 1 3 3 3 2 1 3 2 2 3 2 3 2 2 3 2 2 3 3 1 3 3 3 1 1 1 2 1 3 1 3 2 1 3 2 3 2 1 1 3 2 2 3 3 1 3 2 1 2 2 3 2 3 1 3 2 3 3 1 3 2 3 2 1 1 1 2 2 3 2 2 1 1 1 1 3 3 1 3 2 3 3 1 2 3 1 3 2 1 2 3 2 1 2 1 2 2 1 2 1 3 2 1 3 3 3 3 2 3 3 1 3 2 1 2 1 2 2 2 1 3 2 3 3 2 ...
output:
result:
Test #13:
score: 0
Wrong Answer
time: 0ms
memory: 5788kb
input:
2 67 66 10000 717178592 978529922 1682088483 1515309741 1804878600 1724398443 2505508150 1773771027 1415090402 1599306704 2450073043 2618175452 2711471607 2969977794 2532461679 2810749493 2527568619 2289634006 1959800539 1998501472 1272267821 1819129380 928943578 257782351 -26345422 -783818330 -8958...
output:
2 67 66 10000 717178592 1695708514 2660618405 3197398224 3320188341 3529277043 4229906593 4279279177 3188861429 3014397106 4049379747 5068248495 5329647059 5681449401 5502439473 5343211172 5338318112 4817202625 4249434545 3958302011 3270769293 3091397201 2748072958 1186725929 231436929 -810163752 -...
result:
wrong answer 4th lines differ - expected: '717178592 261351330 703558561 ...424520950 -617980101 -115295666', found: '717178592 1695708514 266061840...751713122 1128783985 -574293673'
Test #14:
score: 0
Wrong Answer
time: 173ms
memory: 26368kb
input:
19 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 524288 552335194 1389253654 201358551 130225760 713430652 1725449296 258591030 -324013641 465939412 939246697 509972292 737422039 537492510 283219860 919125447 -508979343 1420804123 2355277437 309551846 -270575227 1319426927 2195282145 287274560 -1064019808 4...
output:
19 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 524288 552335194 1941588848 1590612205 331584311 843656412 2438879948 1984040326 -65422611 141925771 1405186109 1449218989 1247394331 1274914549 820712370 1202345307 410146104 911824780 3776081560 2664829283 38976619 1048851700 3514709072 2482556705 -7767452...
result:
wrong answer 4th lines differ - expected: '552335194 836918460 -350976643...7 416358237 649186556 778603666', found: '552335194 1941588848 159061220...1378 -174602572309 -56699538462'
Test #15:
score: 0
Wrong Answer
time: 81ms
memory: 15648kb
input:
18 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 262144 -515422490 -704571742 254353376 941427801 -275340791 -1145113615 79290239 -600795866 -823681972 -42732257 -848025723 1583120909 -1270935560 -510081274 -1687437181 984433466 105830154 -207210163 394695931 371431893 233145103 -865241447 -326664957 -2365929...
output:
18 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 262144 -515422490 -1219994232 -450218366 1195781177 666087010 -1420454406 -1065823376 -521505627 -1424477838 -866414229 -890757980 735095186 312185349 -1781016834 -2197518455 -703003715 1090263620 -101380009 187485768 766127824 604576996 -632096344 -1191906404...
result:
wrong answer 4th lines differ - expected: '-515422490 -189149252 76977586...4 88016250 -501293129 750428385', found: '-515422490 -1219994232 -450218...932977 43524132603 214765166491'
Test #16:
score: 0
Wrong Answer
time: 40ms
memory: 11408kb
input:
17 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 131072 363420092 1160749574 -478151648 -457657331 1240884523 2485505923 1137012090 799672780 74151987 667665609 -581677072 -1265321553 1044464462 2784540910 1734361393 500378989 -234415123 -149410320 -2015901780 -3370603517 756086200 1520401049 -961165087 -234139...
output:
17 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 131072 363420092 1524169666 682597926 -935808979 783227192 3726390446 3622518013 1936684870 873824767 741817596 85988537 -1846998625 -220857091 3829005372 4518902303 2234740382 265963866 -383825443 -2165312100 -5386505297 -2614517317 2276487249 559235962 -330255...
result:
wrong answer 4th lines differ - expected: '363420092 797329482 -841571740...1 228985036 191053805 526436372', found: '363420092 1524169666 682597926...5913 -85752054034 -443143919447'
Test #17:
score: 0
Wrong Answer
time: 22ms
memory: 9404kb
input:
16 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 65536 294624324 810749436 -446283984 270508213 367996656 1052762871 47547701 313969143 1229987300 2328875080 292257102 936135662 1416530422 2924839563 1829321643 1575705697 -401891429 -602463356 -1137260582 -2123344198 -669743149 157187856 -1417721861 -2154935804 6...
output:
16 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 65536 294624324 1105373760 364465452 -175775771 638504869 1420759527 1100310572 361516844 1543956443 3558862380 2621132182 1228392764 2352666084 4341369985 4754161206 3405027340 1173814268 -1004354785 -1739723938 -3260604780 -2793087347 -512555293 -1260534005 -357...
result:
wrong answer 4th lines differ - expected: '294624324 516125112 -740908308...68 246742039 13373426 602296488', found: '294624324 1105373760 364465452...098326 40785899597 149926049991'
Test #18:
score: 0
Runtime Error
input:
10000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
result:
Test #19:
score: 0
Memory Limit Exceeded
input:
13 2 2 2 2 2 2 2 2 2 2 2 2 2 999999 -994337690 -246781496 -1052248372 -653695756 -230663576 1048869011 -774582303 954377013 -1232434202 -537366938 -1057605511 177549072 305539066 905693826 297634786 2157090219 -1700793999 -1486207583 -1226171788 -931085524 -673296709 -371515715 -1038423490 -47491810...
output:
13 2 2 2 2 2 2 2 2 2 2 2 2 2 999999 -994337690 -1241119186 -1299029868 -1705944128 -884359332 818205435 274286708 179794710 -278057189 -1769801140 -1594972449 -880056439 483088138 1211232892 1203328612 2454725005 456296220 -3187001582 -2712379371 -2157257312 -1604382233 -1044812424 -1409939205 -151...
result:
Test #20:
score: 0
Memory Limit Exceeded
input:
1 2 999997 -667197524 -610441318 -1643674055 -1101418604 -1292420040 56083565 -1640147905 675881188 -2392433781 -614177218 -2436179308 -1606075030 -1616721577 -1140095119 -2594090316 -2086776731 -1903222418 -1032185617 -1148383334 -257779946 -1825213697 -1458500680 -1006893062 -885084029 -1856941140...
output:
1 2 999997 -667197524 -1277638842 -2254115373 -2745092659 -2393838644 -1236336475 -1584064340 -964266717 -1716552593 -3006610999 -3050356526 -4042254338 -3222796607 -2756816696 -3734185435 -4680867047 -3989999149 -2935408035 -2180568951 -1406163280 -2082993643 -3283714377 -2465393742 -1891977091 -2...
result:
Test #21:
score: 0
Memory Limit Exceeded
input:
1 1 1000000 966113398 419453551 1182013173 377554376 -516341987 -1496374512 -1768958356 -1691757133 -1699977377 -1203999609 -1273224865 -1812522481 -1689589437 -2392197064 -1533436506 -830973509 -252303538 -623603037 -479358083 385681847 -346683685 -576499268 -51205549 104330966 904894107 545973494 ...
output:
1 1 1000000 966113398 1385566949 1601466724 1559567549 -138787611 -2012716499 -3265332868 -3460715489 -3391734510 -2903976986 -2477224474 -3085747346 -3502111918 -4081786501 -3925633570 -2364410015 -1083277047 -875906575 -1102961120 -93676236 38998162 -923182953 -627704817 53125417 1009225073 14508...
result:
Test #22:
score: 0
Memory Limit Exceeded
input:
1 233 999999 -335456592 -583302109 -639533971 -1321212978 -1068899842 -646202276 -1470862778 -1768148954 -1371463181 -841871775 85660712 837457495 1157084883 163704572 1105342728 1170386061 380300068 852553844 655279238 1465229075 836589937 1609994598 2499224517 2587483734 3494135425 3377788110 3632...
output:
1 233 999999 -335456592 -918758701 -1222836080 -1960746949 -2390112820 -1715102118 -2117065054 -3239011732 -3139612135 -2213334956 -756211063 923118207 1994542378 1320789455 1269047300 2275728789 1550686129 1232853912 1507833082 2120508313 2301819012 2446584535 4109219115 5086708251 6081619159 6871...
result:
Test #23:
score: 0
Memory Limit Exceeded
input:
1 10000007 999999 -347980385 -564749761 -409241339 -87031054 421398204 -130869571 -696437484 -34969775 788081716 3572127 -501255872 274416316 -407345128 -950978231 -158532372 -711084471 205041281 -140732114 -356126543 450368803 -446445212 -1355223037 -1975643625 -1098024256 -1448318343 -1011220907 -...
output:
1 10000007 999999 -347980385 -912730146 -973991100 -496272393 334367150 290528633 -827307055 -731407259 753111941 791653843 -497683745 -226839556 -132928812 -1358323359 -1109510603 -869616843 -506043190 64309167 -496858657 94242260 3923591 -1801668249 -3330866662 -3073667881 -2546342599 -2459539250...
result:
Test #24:
score: 0
Memory Limit Exceeded
input:
20 3 2 2 1 1 3 2 1 2 2 2 3 3 1 3 3 1 3 3 2 1000000 -138157754 -10842188 537919043 -1105591108 -896343041 22235074 562649824 900858774 1206405451 -344626469 9159331 1291440647 243657985 699699010 1059195784 -754715584 390327921 1059260074 884621277 770042960 1483470963 -14506265 706550569 2650405457 ...
output:
20 3 2 2 1 1 3 2 1 2 2 2 3 3 1 3 3 1 3 3 2 1000000 -138157754 -148999942 527076855 -567672065 -2001934149 -874107967 584884898 1463508598 2107264225 861778982 -335467138 1300599978 1535098632 943356995 1758894794 304480200 -364387663 1449587995 1943881351 1654664237 2253513923 1468964698 692044304 ...
result:
Test #25:
score: 0
Memory Limit Exceeded
input:
20 59 21 99 19 58 46 40 26 95 64 85 97 31 1 45 45 35 65 7 75 999999 67848731 92645766 -566632702 -1548337206 -2176199998 -2959899083 -2491791800 -2735774158 -3503331522 -2697411094 -3235916293 -3782525296 -4763315058 -4030859871 -4254362229 -3413307235 -3590899706 -3326494185 -3232314532 -3947453001...
output:
20 59 21 99 19 58 46 40 26 95 64 85 97 31 1 45 45 35 65 7 75 999999 67848731 160494497 -473986936 -2114969908 -3724537204 -5136099081 -5451690883 -5227565958 -6239105680 -6200742616 -5933327387 -7018441589 -8545840354 -8794174929 -8285222100 -7667669464 -7004206941 -6917393891 -6558808717 -71797675...
result:
Test #26:
score: 0
Memory Limit Exceeded
input:
20 49 30 76 14 47 62 36 69 76 32 57 27 89 86 44 21 13 38 66 24 999999 113765594 842253008 1815546881 2182267648 1397025164 448416973 280860758 220833962 -599781764 -138546581 -263542785 -882427017 73518275 27584214 -788994250 -786540591 -1674812592 -2495772936 -3233389473 -3844676672 -3881854446 -39...
output:
20 49 30 76 14 47 62 36 69 76 32 57 27 89 86 44 21 13 38 66 24 999999 113765594 956018602 2657799889 3997814529 3579292812 1845442137 729277731 501694720 -378947802 -738328345 -402089366 -1145969802 -808908742 101102489 -761410036 -1575534841 -2461353183 -4170585528 -5729162409 -7078066145 -7726531...
result:
Test #27:
score: 0
Memory Limit Exceeded
input:
20 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 999996 437179795 558694858 -103917023 -383840669 381242183 -302651101 550940867 296441756 -22522569 -345945240 -383689095 141315001 1003757191 562280866 1330...
output:
20 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 999996 437179795 995874653 454777835 -487757692 -2598486 78591082 248289766 847382623 273919187 -368467809 -729634335 -242374094 1145072192 1566038057 18925...
result:
Test #28:
score: 0
Runtime Error
input:
10000 1 2 1 2 1 1 1 2 2 1 1 2 1 1 2 1 2 2 2 2 1 2 2 1 2 1 2 1 1 1 1 1 1 1 1 1 2 2 1 1 1 2 1 2 2 1 1 1 2 1 2 2 1 1 1 2 1 2 1 2 2 2 1 2 2 1 1 1 1 1 1 2 1 1 2 1 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 1 2 1 2 2 2 2 1 2 1 1 2 1 2 1 2 2 2 1 2 2 1 2 2 2 2 1 2 1 1 2 2 2 2 1 1 2 2 2 1 2 2 2 2 1 1 1 2 1 2 2 2 2 2 ...
output:
result:
Test #29:
score: 0
Memory Limit Exceeded
input:
10000 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 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 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 ...
output:
10000 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 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 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 ...
result:
Test #30:
score: 0
Runtime Error
input:
10000 2 2 2 2 2 3 3 3 2 3 2 3 3 2 3 3 2 3 3 2 2 2 2 3 3 3 3 2 2 3 2 3 3 3 2 3 2 3 2 3 2 2 2 2 2 3 3 3 2 3 3 2 2 2 3 3 3 2 3 3 3 2 3 3 3 2 3 2 2 2 3 2 3 3 2 2 2 3 2 3 2 2 3 3 3 3 3 3 3 2 2 2 3 3 3 2 2 3 2 3 2 2 2 3 3 3 3 3 2 2 2 2 3 3 3 3 3 2 2 2 3 3 2 3 2 3 3 2 2 3 3 2 2 3 2 2 2 3 2 2 2 2 3 3 2 2 3 ...