CT2289

Quartermaster's Ledger of lanterns

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

The council of the marble forum of Argentium pays by the answer, and Quartermaster intends to earn it. First: the full register of lanterns. 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 <= 88; -100 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 73 5417 559631 233244 626935 341873 244910 984480 736491 291890 115109 650038 997930 612013 257665 853665 601130 593868 972639 329729 605572 984428 551066 463941 980451 87663 757430 119543 909219 533438 807119 674786 387674 524428 184354 996691 21509 648411 516718 407189 77561 277941 403905 211972 233631 926026 129852 374626 472077 619403 437802 281678 564746 31677 452146 710153 236730 322612 989547 634719 776814 377583 601302 319290 177023 926640 513830 241970 229759 662283 299452 880404 764258 972840
Output: 972840 764258 880404 299452 662283 229759 241970 513830 926640 177023 319290 601302 377583 776814 634719 989547 322612 236730 710153 452146 31677 564746 281678 437802 619403 472077 374626 129852 926026 233631 211972 403905 277941 77561 407189 516718 648411 21509 996691 184354 524428 387674 674786 807119 533438 909219 119543 757430 87663 980451 463941 551066 984428 605572 329729 972639 593868 601130 853665 257665 612013 997930 650038 115109 291890 736491 984480 244910 341873 626935 233244 559631 5417

Example 2:

Input: 22 346442 718785 217041 358962 70653 631480 370012 660099 43509 244223 912066 126208 144145 970236 301598 387186 610813 322695 883294 259743 878075 533806
Output: 533806 878075 259743 883294 322695 610813 387186 301598 970236 144145 126208 912066 244223 43509 660099 370012 631480 70653 358962 217041 718785 346442

Example 3:

Input: 60 958821 616275 589367 313744 931107 781493 217966 662909 53853 314244 553569 200436 632572 361400 671602 314654 125478 692221 23039 661393 862520 943854 881218 603266 857546 157861 68718 76389 592542 733267 463305 674709 563035 508029 293820 159581 853273 457314 666588 836460 563611 511398 928846 23762 697211 233491 434441 90008 523145 380879 585275 595617 709227 426966 787435 901529 496684 426253 893600 501
Output: 501 893600 426253 496684 901529 787435 426966 709227 595617 585275 380879 523145 90008 434441 233491 697211 23762 928846 511398 563611 836460 666588 457314 853273 159581 293820 508029 563035 674709 463305 733267 592542 76389 68718 157861 857546 603266 881218 943854 862520 661393 23039 692221 125478 314654 671602 361400 632572 200436 553569 314244 53853 662909 217966 781493 931107 313744 589367 616275 958821

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Quartermaster's Ledger of lanterns - EASY Coding Problem | CodeTikki