CT26227

The Caravanrest Reverse Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The factor Amara has been asked to verify the safety inspections. On the desk lies a long table of lanterns readings. 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 <= 353; -100 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 313 250466347 471421501 830712930 615447823 195495775 670597865 929750076 410806159 918198256 254607459 176865776 521184035 331520745 526230454 490480539 855646692 138608828 943810452 104981641 843737022 125255330 328722133 761335701 641888358 308423088 677431007 943863079 884167769 676893980 830355944 575979453 504802243 605346626 4954634 411987633 684366875 488162314 83488655 756114518 818614793 353032356 805857177 900350612 5493204 559064966 602526723 689675782 68916010 721274212 845977914 559705738 334815076 479471082 233205867 174137174 237498010 257483880 442807702 490483587 186027395 939051861 26946548 898302726 718831019 458308449 156235329 284356240 208034127 139540528 652459570 426215885 366475525 271056008 222749987 410652266 269211297 668056811 256117302 463951296 336553158 951…
Output: 613584486 496414100 840633794 805623107 856780166 150482998 131921254 301727382 281926352 424355978 703752058 663824728 279996007 838692096 555579843 976001114 374589937 548834262 454594441 486222257 997091217 418671073 375833383 286931356 922987014 135597629 488935743 216367623 811666637 726395022 543221226 308407752 312067583 463826791 709872055 740593863 646375247 333168153 920640997 886081983 740207506 840157780 390365089 251300170 696050520 575989451 876461902 15370106 445843280 832293022 894644951 802974233 922338388 271693201 13819231 361022900 906295949 548636187 221373106 438512947 117255798 882433568 419883357 767982313 846537623 653145382 383274447 552114512 158512501 130198799 436723659 804797552 78237731 678607065 651567467 244792528 764259585 114490427 189286935 23821813 9963…

Example 2:

Input: 207 385191614 730389511 127762145 653593608 90289157 919263504 925191695 960839861 285434935 206638421 459978854 861526123 601146134 88570418 798497268 777877983 28290118 777744834 960281446 514288272 551336848 126035357 105114042 199812919 631333292 124981620 410261893 458829168 215543412 860628696 362242518 942794303 156646591 861642036 313340390 631869337 465404088 219247037 458786311 865697909 792019636 536756282 914638510 279071071 316669606 903123947 745827118 91106732 74468937 977931300 432825303 837723639 925723736 987685035 532033387 655034952 795939550 753730788 232029215 409593746 156335363 118827897 236672265 80171444 110833211 505291899 896863628 454997449 470582815 795740546 692620414 146226282 987933523 533647827 279849740 901006669 275963777 243860560 148457290 849480257 68…
Output: 2483937 923565428 627594624 165785497 270396860 528597239 704570462 843159113 857800834 222849819 602266260 957514704 693813179 372830310 854234853 168106123 739935476 974181974 727914532 393673680 864037644 797498473 734222241 421666628 571979956 361332981 850073544 762659676 44835472 88497207 72604636 271851540 168159777 924512393 742369826 674113030 853737473 220872687 624762441 919260935 704946428 173806490 975111182 473805642 232063686 741829458 562219523 767839812 75640981 130111390 221907439 541157156 463859868 820144488 574634702 619300290 403877803 828157060 456043747 888005407 185951867 171925711 324587216 5759652 499347693 269457800 996208272 17090687 981106206 346523475 764620078 4683196 810049887 760498606 412729568 125851636 551766431 805746174 172336120 914658849 121143646 8…

Example 3:

Input: 178 164994954 813602847 202899825 372466070 922196742 373827467 749653644 791937121 829712517 891196477 963816756 563568564 176105273 738971255 198655731 546547768 261671201 931650690 772426200 184869348 351783488 418456032 948292685 485241845 440064953 256302113 244989120 836511434 894082064 167109221 493174515 169409417 209866153 795382187 469618061 246547189 200253866 185317192 453233168 125825826 784353570 84107865 178336735 981447389 500672950 627243704 325076698 58107211 35574554 391232371 431056109 88767390 838370870 481813992 899484224 275094946 718698371 307247445 52218461 127086487 37508076 275508419 49247640 146328445 319126641 54828013 608440004 66075063 361682571 469652809 544516134 799797145 730694001 893417890 747542760 228262689 2997746 667177654 762789151 654501251 2118687…
Output: 779943648 622311276 3373030 904233279 258840313 637812518 970392957 262604743 989058379 466087961 21530390 457698631 99247299 657852317 320999009 62969429 643969447 176189284 997021207 890218203 206036284 300794860 735276582 445247831 800115950 698203352 870712174 417754615 605947192 371382556 417854173 809137178 894590041 314858156 845430890 417022319 700817705 838317308 761587579 161381397 992370746 60978652 567487232 868008036 539453265 936584485 959634483 978026243 47061917 324306851 838416191 726368701 468125281 840881747 330932571 261070868 892474807 989454423 244021814 396082737 819700141 77807890 856930740 357557220 222586618 976137381 746821575 639649903 931233594 223825458 144820665 320522148 415130275 431245030 763509531 266142107 6715538 865057148 213450338 776645609 673842710 …

Constraints:

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

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