CT27534

Ravi's lanterns Reckoning

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The harbor bell rings at the terraced vines of Grapehollow; Ravi weighs the day's lanterns manifests and starts the calculations. Task: Read n integers and print them in reverse order. Input format: First line: n. Second line: n space-separated integers. Output format: Print the n values in reverse order, space-separated. Constraints: 1 <= n <= 728; -1000000 <= a[i] <= 10; answers fit a signed 64-bit integer.

Example 1:

Input: 640 -274012 -738964 -253884 -716396 -734271 -229719 -435230 -414786 -157825 -524246 -731313 -109086 -555947 -60853 -622866 -797794 -166239 -152772 -813261 -807516 -851760 -403527 -790200 -970792 -600814 -69717 -378386 -854575 -336158 -289317 -240643 -472460 -402501 -914054 -816777 -577453 -783767 -931070 -801597 -666402 -976187 -670250 -383290 -36817 -681297 -244140 -623747 -880375 -969495 -189854 -430386 -210481 -510569 -408855 -314911 -392090 -129737 -89219 -858745 -765790 -628630 -483004 -418311 -207090 -465426 -400950 -585443 -883167 -783698 -403444 -991136 -445354 -629985 -518920 -667154 -673085 -15392 -685260 -337717 -451370 -676555 -961511 -949083 -605068 -680422 -463954 -547732 -396794 -384217 -244959 -908061 -828165 -699282 -382751 -827576 -866263 -865815 -408975 -886691 -949127 -…
Output: -489229 -485557 -768769 -645351 -353093 -788975 -28149 -902503 -185678 -655571 -543193 -528751 -700706 -542582 -257930 -302136 -656615 -434451 -201495 -116712 -848049 -802679 -746551 -723053 -994930 -928798 -684471 -290489 -934145 -787572 -912456 -257812 -825678 -17400 -411592 -627308 -113222 -421302 -120858 -433566 -788431 -755095 -966129 -254052 -813774 -874963 -447457 -628986 -647154 -769930 -3624 -91998 -958819 -369420 -655224 -156864 -551601 -291284 -509762 -669014 -949170 -207850 -984239 -468844 -406099 -118950 -826175 -902771 -952483 -860843 -785567 -331958 -849106 -826238 -735221 -962312 -677681 -536 -222943 -918476 -98302 -480327 -684855 -10739 -902637 -828928 -750145 -34756 -665471 -456301 -420563 -403669 -31540 -939184 -96712 -324401 -445936 -294660 -341724 -49328 -58296 -20808 …

Example 2:

Input: 235 -887690 -805262 -872709 -466527 -67344 -513371 -123339 -93795 -732195 -674220 -923858 -312657 -346184 -608632 -533722 -626438 -765068 -227380 -965198 -249931 -215192 -370059 -302565 -748161 -738200 -800292 -937965 -232429 -247172 -976525 -976737 -451509 -301529 -975459 -673617 -599972 -104027 -423436 -61379 -806646 -419429 -865928 -169852 -11587 -270703 -688072 -843043 -467269 -594086 -390416 -654756 -594592 -347871 -477240 -170965 -770227 -767827 -613180 -420119 -719212 -452320 -115404 -644623 -228583 -241768 -651542 -237530 -561276 -816507 -227668 -653876 -236131 -562339 -103509 -278425 -471049 -344776 -622535 -612150 -756832 -252282 -882359 -165279 -352662 -502498 -692630 -166171 -439770 -912818 -431825 -814593 -542000 -384876 -126343 -734347 -870636 -700522 -253385 -401179 -666553 …
Output: -442632 -747454 -18839 -355954 -888670 -458102 -641819 -587257 -458087 -338252 -463362 -345846 -797857 -263345 -302533 -540990 -755975 -508597 -179299 -68279 -418355 -110576 -696411 -928877 -305661 -80239 -94054 -524789 -934629 -728472 -678981 -980854 -964867 -795765 -17627 -510075 -810995 -946996 -704531 -189745 -427766 -42392 -833048 -311072 -993146 -564056 -523423 -770868 -341244 -21602 -564267 -97438 -797946 -267351 -419306 -224528 -629455 -370535 -314191 -106751 -276489 -601108 -476980 -843277 -777443 -761891 -493968 -732562 -203425 -970919 -546230 -811674 -622805 -906571 -720086 -25965 -209322 -549815 -311539 -341917 -769970 -615668 -422784 -767742 -995678 -951710 -498003 -952376 -231856 -796814 -767462 -109157 -147364 -96954 -246540 -112052 -682518 -794322 -419574 -818206 -457511 -6…

Example 3:

Input: 723 -177539 -492784 -449620 -390228 -252222 -764638 -173009 -203190 -464878 -381140 -158537 -906364 -830916 -974174 -14019 -892538 -194406 -56015 -929331 -906138 -250802 -900196 -801137 -662786 -651558 -40039 -852964 -570048 -314091 -8885 -139777 -328414 -170629 -956760 -961342 -831018 -523248 -960092 -744191 -999987 -941294 -952495 -41383 -580903 -872527 -760855 -710476 -632807 -116495 -96998 -814096 -620590 -665523 -740289 -964208 -964296 -547164 -756621 -344342 -34349 -169748 -106496 -100649 -361948 -721239 -540429 -846083 -189659 -291514 -311303 -449108 -959474 -513806 -700228 -667120 -718778 -813017 -789717 -897137 -429950 -430177 -423315 -319641 -275647 -241639 -70194 -963795 -841395 -42525 -465191 -999499 -549435 -67389 -619756 -481789 -745719 -244792 -617939 -142928 -334517 -753167…
Output: -714635 -946045 -552758 -978117 -360756 -594329 -975026 -202465 -438337 -759751 -570950 -741223 -117046 -310181 -785926 -628029 -734760 -10117 -187020 -418432 -120317 -25898 -796919 -812921 -548068 -813803 -510339 -79932 -11790 -716241 -406350 -570989 -575384 -172691 -737659 -218460 -754129 -795249 -629021 -558708 -984022 -491379 -44475 -412496 -769410 -142459 -767682 -583556 -943960 -214236 -585784 -475809 -273572 -780137 -907704 -729334 -56111 -26053 -160948 -674727 -121052 -999022 -753630 -594450 -555819 -588752 -676782 -674047 -495593 -483377 -986054 -583912 -353002 -465721 -810197 -221445 -270836 -892578 -331216 -495485 -845337 -330367 -735471 -285765 -703008 -315973 -802109 -738801 -594257 -655756 -628455 -397805 -418301 -738317 -922575 -481662 -943085 -590503 -108354 -24033 -28552 -…

Constraints:

1 <= n <= 728; -1000000 <= a[i] <= 10; answers fit a signed 64-bit integer.

Loading...
Test Cases:No test cases
No test cases available.