CT27370

The Reverse Order of Whitesnow

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Yash the tallyman watches over the tundra station of Whitesnow's stores of scrolls. A careful computation stands between order and chaos. 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 <= 583; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 505 135651207 879856254 74782131 875389411 125984512 127965371 59714529 823636681 953611441 150526824 844076356 657424491 206887079 866892924 646972280 340946673 818169518 31169900 626389325 785916979 26106271 132799806 357835312 80977583 922476170 998902528 159822223 723808034 403626342 554908714 561809077 231242169 550609829 239463435 518894546 869402004 671095957 204426944 436342084 492929406 58537550 301275195 293172135 76005671 316680302 584326864 702269433 39428380 161048090 466508181 131484196 134231937 389329829 251365119 257082969 306841272 261806384 871921157 408674958 593800398 39963173 940239329 213191501 484112422 446017225 82900087 829536349 955205222 135693412 296612359 286649340 755579129 518126555 683782 572522129 136889038 244408411 215695051 204518956 532594187 675372697…
Output: 995135998 588270209 454350778 527124531 473456122 696126489 909218695 943968093 358547204 258059776 234325365 916080795 295672911 773470527 183667497 22784457 473837873 723354022 80202509 424549758 622800157 513432389 979850625 822635945 368100158 911045028 995100220 687568456 571612563 868795068 686047026 663215508 830913675 578357012 79039835 361858904 837184929 28565651 614002704 514739903 721523725 723396621 589027448 529413137 413244264 234670220 473336749 738511321 908621126 80263121 22217918 65887370 59830905 735518380 865730654 724285215 67962406 354915751 505579269 992604012 133530804 378387396 785904699 312879030 521153417 633599644 357142626 450722076 854717070 547907886 459378395 804765858 752481712 619422024 756596246 695659196 797540447 692856480 681516960 668910245 366268194…

Example 2:

Input: 487 926514313 411988554 664784130 512081374 539075630 744861807 866255694 305589989 704786596 832724989 881866490 792834305 64581589 113577290 259621246 958752173 985069992 669045003 296675724 291180856 238051123 135570702 405281847 804505455 832447708 945779410 276954550 717634817 665538899 937968920 386385982 742053238 570617310 442001423 461970816 107725328 629850695 302979371 512826235 946604829 139919694 359734955 410288003 252866998 632023899 818890125 814152280 861110442 343320071 806713013 541745958 18923112 904571741 399704141 11588778 98285119 942016504 188035115 951656296 530403838 738379675 295725004 730725503 373480280 42308340 286263078 760852422 574663167 282783831 37235182 604994436 845706317 687163113 129504860 739277869 453976080 338860720 593446165 764758874 210480356 85…
Output: 358046094 388147866 21251861 585020291 147131322 351393619 235959041 394730370 185358288 956524102 641072364 227444010 981561776 924015221 101536199 282474285 119964408 217030722 633782245 143111592 127835935 446069996 991044983 775217243 602342651 978005606 45349874 132143698 546869948 130305838 41013336 19238899 451154015 381252189 158575449 816079560 130837652 266426506 591317989 704097818 949494799 715874984 822113088 735240237 172464981 362919728 374367884 280900703 235506347 122201902 946625278 574720537 283452766 339724628 105472569 645979108 276422937 619140549 388449789 729536526 552348753 838266680 833540360 160619244 515472336 451189531 825616495 111629443 234298375 944431565 111482858 543871874 638297881 614704709 42378429 593842942 40992934 478718404 516310723 486638048 800077…

Example 3:

Input: 367 875381628 904605350 849751519 850085764 927106060 990992495 250356178 978066018 857560113 338250772 813754793 74780874 453355095 322526484 735810907 821315337 177561637 917215811 420935510 882990237 240939367 839235559 352888777 273191563 582893259 501458563 223697834 313468441 10288329 754240742 428428224 286311287 76195181 804311550 875736496 735481132 444278147 357856509 323706247 541362537 99767053 13524075 917686635 846062129 433688907 993594895 552138647 831955933 566622685 981808171 295300295 70867521 661090158 72232490 333314223 360701316 778931334 227515166 580106622 645714685 516319060 916151191 138752944 747499733 678840004 971723661 394310155 275482609 307831488 886365805 563095404 181392458 74221297 347128700 646422364 373206310 747429075 809068383 47955651 385804110 20551…
Output: 539666568 915132579 806273775 109013838 89000529 369863512 432857645 649452520 946416361 593992383 969342860 187699801 35425994 127550749 504996780 107836293 597304571 936377907 177349806 860350438 606428889 339874376 270332173 362046202 671077326 922607927 697419394 969594536 386090501 961657854 278648363 761680822 114390469 462679763 887447541 745502793 660143986 216539172 902715454 464075316 53222689 682064111 322710856 472869865 270232170 79042274 496812374 683390993 238257982 491961002 478976902 991616675 576954600 275836846 65490003 160702694 769148112 785799141 553631881 189987863 571376231 885078968 700673586 476348983 344115102 936719319 668378605 363113686 890304545 519641235 965485740 318591295 700003877 707698373 767667009 123747372 460923208 482109374 8206538 397065830 7290811…

Constraints:

1 <= n <= 583; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

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