CT27692

Wistful readings Reverse Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the shale slopes of Greystone opens only for a perfect tally of readings. Paige means to find out. 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 <= 232; 0 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 93 56547 765939 115362 631947 261553 4606 972376 864195 195557 882083 684401 14784 353724 8234 80486 146474 976363 596532 761233 504446 643295 796705 429550 209330 739931 249178 304064 814029 985364 822369 170629 163279 59418 857311 612361 890804 990397 808990 321493 769818 439471 787198 437768 54854 84087 599985 983759 815012 861022 868355 595739 179953 734694 280662 304313 999271 155487 960224 404322 607600 598359 142320 901573 911535 862516 217471 134180 697436 363877 558343 386294 927706 907319 76837 744771 136130 580014 254089 304118 886897 238223 457630 291155 320656 167529 330395 251112 780836 118871 543571 560544 35270 963102
Output: 963102 35270 560544 543571 118871 780836 251112 330395 167529 320656 291155 457630 238223 886897 304118 254089 580014 136130 744771 76837 907319 927706 386294 558343 363877 697436 134180 217471 862516 911535 901573 142320 598359 607600 404322 960224 155487 999271 304313 280662 734694 179953 595739 868355 861022 815012 983759 599985 84087 54854 437768 787198 439471 769818 321493 808990 990397 890804 612361 857311 59418 163279 170629 822369 985364 814029 304064 249178 739931 209330 429550 796705 643295 504446 761233 596532 976363 146474 80486 8234 353724 14784 684401 882083 195557 864195 972376 4606 261553 631947 115362 765939 56547

Example 2:

Input: 104 656415 567617 65366 740515 942367 192673 83816 85170 527602 585002 238383 414828 578496 948348 690594 160241 32132 989899 123839 86460 941932 880790 297183 401983 971070 637670 154506 519736 484610 577408 625744 469810 184211 576166 622609 242904 191462 439890 79176 833859 97677 955130 483272 266100 310635 939855 752237 939274 98790 621537 679733 674378 316001 553452 233866 405210 584208 490605 972198 510096 192508 20539 278584 88968 523636 805896 51867 280364 266830 842055 429085 545173 462221 725139 429356 124824 127843 384016 208851 143938 519745 569324 495890 43893 80461 179818 129766 746411 393670 773965 739148 588129 8404 59400 400018 573678 334467 42680 697386 74719 266175 891479 438900 544445
Output: 544445 438900 891479 266175 74719 697386 42680 334467 573678 400018 59400 8404 588129 739148 773965 393670 746411 129766 179818 80461 43893 495890 569324 519745 143938 208851 384016 127843 124824 429356 725139 462221 545173 429085 842055 266830 280364 51867 805896 523636 88968 278584 20539 192508 510096 972198 490605 584208 405210 233866 553452 316001 674378 679733 621537 98790 939274 752237 939855 310635 266100 483272 955130 97677 833859 79176 439890 191462 242904 622609 576166 184211 469810 625744 577408 484610 519736 154506 637670 971070 401983 297183 880790 941932 86460 123839 989899 32132 160241 690594 948348 578496 414828 238383 585002 527602 85170 83816 192673 942367 740515 65366 567617 656415

Example 3:

Input: 40 442843 692060 797105 868509 490409 487193 99661 151072 724178 585949 767980 21143 204689 982445 491905 3230 34200 173216 571819 524702 114966 371192 307432 99281 521288 874329 540530 826418 926115 807170 188301 323092 763245 348320 582802 815818 107767 762336 889760 419126
Output: 419126 889760 762336 107767 815818 582802 348320 763245 323092 188301 807170 926115 826418 540530 874329 521288 99281 307432 371192 114966 524702 571819 173216 34200 3230 491905 982445 204689 21143 767980 585949 724178 151072 99661 487193 490409 868509 797105 692060 442843

Constraints:

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

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