QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#311992#4550. 魔法小程序ahihi12342 30ms18552kbC++142.3kb2024-01-23 09:28:442024-01-23 09:28:44

详细

Test #1:

score: 0
Time Limit Exceeded

input:

1
1000000000
1
-936011409

output:


result:


Test #2:

score: 2
Accepted
time: 0ms
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: 5880kb

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 -2990134780 860485027 1207207907 814127574 863768757 866478105 1419480089 -600654100 -38559107 -138400895 -674516297 -1183160963 -1338404140 1293967668 781687473 -370913565 -1593954114

result:

wrong answer 4th lines differ - expected: '55820894 -349727842 442519017 ...715345379 -437255659 -785784890', found: '55820894 -238086054 -145294879...81687473 -370913565 -1593954114'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 5884kb

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: 5556kb

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 -1102594271 37981869 -1765754962 -1732089360 -7620343198 3013666005 -551106573 -1845921029 -1196998876 -1990284922 -9180048247 3229690371 2101013684 -1615626612 -19980820 -3588261080 -9005724409 -1235824640 1177114519 422902527 -2433239202 -2347327554 -16918466553 -4...

result:

wrong answer 4th lines differ - expected: '-686129665 722005768 197912853...171892695 -890417820 -505209105', found: '-686129665 -650253562 -1102594...4301001 -2935805338 -3967699646'

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 5684kb

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 ...3 607855892 574937608 234923730'

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: 5692kb

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 1393461566 -1424346333 -1125297764 120892054 -914061873 -403225996 -415005838 -1683957492 -3909515187 -1492160719 1177740449 1819438690 -1937271059 -375592248 -3813718415 -4091271307 -11241341711 -2332256174 -3314815827 -4112215934 -3747512...

result:

wrong answer 4th lines differ - expected: '531784716 254689388 -783179218...3 195331243 811690088 965328844', found: '531784716 1318258820 789768990...416 325084596481 -3941870808826'

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: 3ms
memory: 6208kb

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...712411291 3904905573 1751773535'

Test #14:

score: 0
Memory Limit Exceeded

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 3532201053 -1610004537 4707441776 -3034909953 890719221 2637903031 9206865210 -9666764789 -5385237731 12726765541 669272202 12543115721 2985375134 -15127547758 17928607749 -14772144153 -11674869398 16147238858 -6385567824 38029478...

result:


Test #15:

score: 0
Memory Limit Exceeded

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 -1670212598 2415775409 191655589 1469752424 -816065184 -3187039228 -4240605658 2648202196 -278615200 -3762575427 -901547263 -1914084240 -1213642307 2846959383 -8541772716 10047646844 6706815689 -10372847886 5505760648 -15404436713...

result:


Test #16:

score: 0
Memory Limit Exceeded

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 2206767592 -2459978645 2054185805 -4546812 5142140867 2877040661 12213603901 -10185446334 -3433147264 4136662633 -3294235388 8579067657 4432146480 -2232228444 21822166241 -21229457102 -15729459453 12248546190 -24817949863 42847554997 ...

result:


Test #17:

score: 0
Wrong Answer
time: 30ms
memory: 18552kb

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 1469839212 -1281149531 1932568310 -1154453445 1051230887 1691746060 6359111696 -2000149789 2777587040 3507540882 7828485100 1091942320 3796874052 444177083 29794537905 -27325424842 -20334083041 18677564768 -17089450856 32272165773 543385...

result:

wrong answer 4th lines differ - expected: '294624324 516125112 -740908308...68 246742039 13373426 602296488', found: '294624324 1105373760 146983921...30826467944 9059287625790209410'

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 -2540149054 -464824942 -5130452514 4599473675 3632641197 -2713734837 -4136222850 3509278417 4305827979 -10915505600 1368710624 -11054720136 -2983758618 20735877614 -2572382011 3537520840 4538732841 -5997576538 -394345134 -19771971139 -13760...

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 -3531754215 -1467453817 -5138931303 1508756184 -2820400815 272069758 -2680819310 -2042344282 -6056967525 -1035643339 -7265050945 1285437642 -6491002131 -1924050351 -8670866196 1745459012 -5115976986 1529244755 -3489156923 -1877551097 -5749108119 1391737286 -4634002...

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 -189595152 -1852934207 -1401184822 -2480752370 1802103692 3433121577 4622146957 -135636681 -1258413632 4452030907 -859442498 1418285135 5677079511 -3927261665 -2392074069 8516566042 -9248628331 2790862909 -4732488458...

result:


Test #25:

score: 0
Time 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:


result:


Test #26:

score: 0
Time 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:


result:


Test #27:

score: 0
Time 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:


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

output:


result: