CT23195

The Buzzwell Reverse Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Caravans arrive at the honey farms of Buzzwell with crates of stamps, and Ulric the ledger master must account for every last one. 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 <= 794; -1000000 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 549 -222183 586800 891170 -945759 468702 402966 383514 191389 589758 229752 837467 685619 701526 -847907 -909923 242935 -312645 -799126 -558531 -108385 401538 975132 501185 -535508 -867605 421348 -789826 -999591 296677 -442838 -503730 571308 220234 -92987 891817 882526 993264 -748941 -551025 -80985 844448 262006 387277 523942 -565201 338602 -932383 991378 954093 -741751 -942239 -674701 574903 -604520 -447114 572177 732557 61121 -661344 111891 -994767 -879070 -873718 940115 -677533 -690688 -201161 -637773 704817 -377635 -223223 -992523 973832 181249 421357 -557216 644894 -503209 -1219 172241 -115860 712499 -381733 -238354 731032 482301 585712 15826 -191368 -224966 372328 401634 -466724 555033 -437977 -218931 83715 171229 -845344 -584123 -690619 555002 779751 195042 -539478 687666 617095 158…
Output: -423632 183849 898042 -995416 -292508 544373 -53665 848381 484989 -774015 769847 832212 -714068 -297878 134111 227945 627887 264545 -338333 -867167 796742 268515 -223043 -352518 -655200 -43626 -143382 670770 -779282 728885 186212 -824285 794927 -24450 930756 195476 405910 -153606 -836294 879451 -206693 676360 -249951 611566 -661429 -446834 -735261 -621878 228868 -685378 251457 465642 -118804 -713376 -573463 -564044 492412 -925726 -533501 -172267 570143 878354 -582463 -438880 427092 83413 -442981 -477011 -123158 570103 466468 842872 253727 305438 -921123 -709125 66441 -286009 997172 -201976 496491 -724761 -597503 -936212 -977081 -222931 -197569 -334396 926321 -194367 305324 602913 15913 -443213 62834 211619 -85530 335703 -476970 982347 760914 498461 -679414 328972 -600190 593611 981947 6044…

Example 2:

Input: 138 -263449 -443875 -561597 -687255 -242920 932660 520313 385628 -171863 -83653 -693923 -811483 936093 -798268 -240689 -252847 364091 -185857 534815 -124831 -738127 150053 -491964 -603424 898199 -705286 -852122 -135188 -559731 940683 498881 762171 -245233 148015 -758570 536693 886601 593990 -156418 -176547 85689 -131538 472368 -815171 -299491 -960163 -244119 168623 -918188 860967 92347 449084 817201 404230 575439 967242 -663981 630359 475897 417718 139863 609062 268757 -984392 450738 349650 -10746 -675274 -808500 144003 -323958 -64043 336038 -330738 455753 798958 544747 632200 40350 92356 139304 -452730 -427419 165916 987881 -27683 -19293 628236 942104 170826 724519 829631 -803529 -158468 786527 -294006 712509 349617 -353624 -419869 -856117 218938 27478 790586 -563575 68870 5737 -385455 -1…
Output: 105288 -233173 699491 -752885 765969 -654832 -371016 901111 88458 -750096 -756907 889672 227872 -108396 -695328 124438 399176 -483135 728995 627825 -811715 823058 87120 -681254 -62646 -96513 318145 -313553 920944 -126626 -385455 5737 68870 -563575 790586 27478 218938 -856117 -419869 -353624 349617 712509 -294006 786527 -158468 -803529 829631 724519 170826 942104 628236 -19293 -27683 987881 165916 -427419 -452730 139304 92356 40350 632200 544747 798958 455753 -330738 336038 -64043 -323958 144003 -808500 -675274 -10746 349650 450738 -984392 268757 609062 139863 417718 475897 630359 -663981 967242 575439 404230 817201 449084 92347 860967 -918188 168623 -244119 -960163 -299491 -815171 472368 -131538 85689 -176547 -156418 593990 886601 536693 -758570 148015 -245233 762171 498881 940683 -559731 …

Example 3:

Input: 424 643948 605784 246191 -628990 -48171 689647 606413 -884859 9042 102929 -100869 -338020 -951975 726311 -734653 121957 195027 324897 986294 -490614 902065 -536721 -838845 728819 971870 333196 469207 113670 332602 -371043 -672543 828718 -945773 -768031 795901 -475545 -254280 -528180 55272 -495149 -163098 -483152 146761 -980446 -817909 -327066 -258459 610747 -761778 -103304 -545205 -381047 934814 303653 -276985 -76068 245848 619983 -888427 664912 173081 598341 -65538 -199761 393772 857892 -844871 808968 -894870 -182257 272624 -394016 -95190 -503987 615544 334801 -345351 495860 635507 -642336 916924 -196365 -879994 -937989 -26245 -897822 -21481 877185 -469042 -967868 926710 901403 176654 532209 -717892 -582276 -644113 -499677 -980335 607177 -569189 217714 11838 768959 165395 273882 731404 -2…
Output: -433250 -809909 70242 736206 -414364 -964510 -454061 -69875 -960600 -352650 -556375 259071 -158097 -65150 -945627 465631 -589768 149336 -368834 -959921 -591137 -92779 71466 -995698 -527876 -754500 -387913 -739209 -661986 -25434 -137885 -299701 700692 386937 274077 267812 -484912 605518 841293 -946622 -698850 825346 -612599 585199 -197377 -68446 -361582 815517 -544536 625 965800 -206016 518173 940465 743988 296091 -904607 808626 469208 -576055 126403 748738 -681945 762405 755070 -824878 -430453 352738 661569 180625 -441589 -268285 -305033 466892 -506681 -794136 -620009 7533 349982 825521 -759521 -937038 702399 -901229 -568454 22118 -797413 770269 -942715 505538 -410428 323556 858302 472562 217508 772479 -758077 71254 241195 -68484 664135 -849904 -463056 -411366 -771739 191616 -616153 -78458…

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Buzzwell Reverse Order - EASY Coding Problem | CodeTikki