CT914

The Reverse Order of the Pearl stamps

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

In the ember mines of Cindercrag, Brewer the auditor keeps careful count of the stamps. Fulfill a tricky customer order, every figure matters. 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 <= 65; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 27 774975156 454736541 570494204 738487080 891982252 302946320 682475869 196097860 252452551 497266095 51589735 334604594 269154344 681452876 804825499 898804939 922617731 62189258 225994347 442472912 868730782 900520887 384159257 984478801 149745453 989219686 911535264
Output: 911535264 989219686 149745453 984478801 384159257 900520887 868730782 442472912 225994347 62189258 922617731 898804939 804825499 681452876 269154344 334604594 51589735 497266095 252452551 196097860 682475869 302946320 891982252 738487080 570494204 454736541 774975156

Example 2:

Input: 42 199757819 640665974 521093244 866179602 37122209 349139239 815344702 371653205 26017040 786574256 499398789 89228418 87506154 645061729 777538688 606807936 569105592 104223076 912835330 585227676 688766337 251634490 812441297 98032410 842132946 762515565 634117082 917569057 693066809 62175010 899842587 229819913 798266858 76341889 218253405 409891217 298859211 71079058 661301526 162980236 229002175 51368764
Output: 51368764 229002175 162980236 661301526 71079058 298859211 409891217 218253405 76341889 798266858 229819913 899842587 62175010 693066809 917569057 634117082 762515565 842132946 98032410 812441297 251634490 688766337 585227676 912835330 104223076 569105592 606807936 777538688 645061729 87506154 89228418 499398789 786574256 26017040 371653205 815344702 349139239 37122209 866179602 521093244 640665974 199757819

Example 3:

Input: 40 770336461 28100178 200386588 817638879 556776179 80959392 322532788 321479284 671376641 817177179 110181850 459201982 929826725 386603299 513350009 432561646 559625877 46070423 732429397 20786727 962064897 327111030 882821505 283964488 265975234 448518223 315155617 661617173 149325854 666914922 138026200 988372888 677437435 583492011 398780751 741778500 795958655 845645932 608886249 436331246
Output: 436331246 608886249 845645932 795958655 741778500 398780751 583492011 677437435 988372888 138026200 666914922 149325854 661617173 315155617 448518223 265975234 283964488 882821505 327111030 962064897 20786727 732429397 46070423 559625877 432561646 513350009 386603299 929826725 459201982 110181850 817177179 671376641 321479284 322532788 80959392 556776179 817638879 200386588 28100178 770336461

Constraints:

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

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