CT24263

Quill's readings Reverse Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Quill runs the tannery at the desert outpost of Sandspire. Today the books show a list of readings, and the numbers must be worked out before sundown. 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 <= 801; -100 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 98 373382 81719 811783 803702 936827 143779 328706 319795 350233 227832 792792 151855 43305 3424 592966 258676 467835 243410 428632 302120 811554 540736 325678 673064 957344 121120 15558 530800 811687 139190 638441 492902 753027 501910 222074 749813 945192 936734 472197 747760 840013 988663 677440 467414 184084 260262 679821 511729 30614 806854 563242 958448 871362 845833 78139 962881 912372 466504 398594 51156 237727 859803 788417 570592 121160 539351 900723 567744 828437 656709 50233 465447 716065 731121 645302 100884 794042 797454 733065 166018 671014 217657 114659 6016 44275 834721 553829 196237 841449 416071 663348 37150 195733 353449 700918 595489 394171 949161
Output: 949161 394171 595489 700918 353449 195733 37150 663348 416071 841449 196237 553829 834721 44275 6016 114659 217657 671014 166018 733065 797454 794042 100884 645302 731121 716065 465447 50233 656709 828437 567744 900723 539351 121160 570592 788417 859803 237727 51156 398594 466504 912372 962881 78139 845833 871362 958448 563242 806854 30614 511729 679821 260262 184084 467414 677440 988663 840013 747760 472197 936734 945192 749813 222074 501910 753027 492902 638441 139190 811687 530800 15558 121120 957344 673064 325678 540736 811554 302120 428632 243410 467835 258676 592966 3424 43305 151855 792792 227832 350233 319795 328706 143779 936827 803702 811783 81719 373382

Example 2:

Input: 320 333637 206744 642639 5138 261700 980103 857254 392641 256772 74899 881304 647007 396419 141290 525529 995362 512361 852588 331146 469319 862642 898230 574230 5979 521325 879230 476345 336177 202825 575051 636796 783313 899120 890626 321365 632917 355012 366089 145580 110554 436199 785609 110398 437777 883804 407344 27562 916969 754336 669500 534883 128882 191761 11673 32022 349671 206913 909943 524072 662 688687 934014 739499 982756 370644 246783 380161 115943 683634 342098 770632 488897 198270 24733 720542 633916 945229 814665 601082 353751 841737 471822 875745 522890 403698 425720 617162 874586 377795 230435 870668 449031 997979 519387 751924 972018 194248 682910 185187 148000 749058 536163 523025 979786 393319 224968 996255 207021 181423 176137 276079 658193 271767 998846 614282 671…
Output: 480191 295673 206850 681497 676911 757808 410330 593931 325920 498791 16108 569145 395228 967402 298334 847331 482519 409566 340160 371691 197384 598179 595166 804419 298595 602482 977330 67562 203629 803133 214839 984395 492640 731455 647685 611402 49085 709548 399578 158389 79058 333575 296027 550543 963757 814747 569326 786486 391383 937124 910988 828593 736576 274425 806838 261164 878494 510821 875201 685704 729576 13240 531991 284833 828379 976758 575473 373629 106278 974179 864636 625863 279794 565744 590281 830989 556281 368817 983367 889891 238279 763188 281916 179984 913170 462583 611598 898747 458721 422829 473406 726096 747712 488104 383823 228630 84965 291309 7689 579370 322940 908458 49457 189288 763511 434995 149020 305487 619008 781913 447762 635565 722701 601038 215931 5499…

Example 3:

Input: 68 293723 999437 381430 217644 836527 445188 948788 8482 956130 735449 101701 640160 656754 945185 105601 776131 543226 78604 832554 553033 681076 667125 811722 183807 320713 323963 203087 783120 717762 600978 664279 78286 289866 252940 172155 328401 69483 361589 430331 554613 269814 130971 632049 737807 746336 612782 674291 597721 618333 35315 432072 168862 552520 75860 130253 525780 645574 616131 465030 122807 870917 976075 976521 49026 187168 951481 248352 704600
Output: 704600 248352 951481 187168 49026 976521 976075 870917 122807 465030 616131 645574 525780 130253 75860 552520 168862 432072 35315 618333 597721 674291 612782 746336 737807 632049 130971 269814 554613 430331 361589 69483 328401 172155 252940 289866 78286 664279 600978 717762 783120 203087 323963 320713 183807 811722 667125 681076 553033 832554 78604 543226 776131 105601 945185 656754 640160 101701 735449 956130 8482 948788 445188 836527 217644 381430 999437 293723

Constraints:

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

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