CT925

Rune and the Jasper scrolls

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

The council of the acacia flats of Thornveld pays by the answer, and Rune intends to earn it. First: the full register of scrolls. 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 <= 59; 0 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 13 259915 141516 490150 352890 93002 840132 965764 585611 817078 940531 136686 164745 52182
Output: 52182 164745 136686 940531 817078 585611 965764 840132 93002 352890 490150 141516 259915

Example 2:

Input: 49 390177 265226 604962 75149 588015 503141 774313 99596 750466 638393 687938 890661 764523 605441 192119 423803 693701 94909 739576 684451 529463 88826 118449 21191 828761 955730 731627 232038 176670 582187 752495 740219 618481 823098 680290 914942 53416 377187 435775 977591 90886 617846 601880 555364 127643 873122 389803 414758 8657
Output: 8657 414758 389803 873122 127643 555364 601880 617846 90886 977591 435775 377187 53416 914942 680290 823098 618481 740219 752495 582187 176670 232038 731627 955730 828761 21191 118449 88826 529463 684451 739576 94909 693701 423803 192119 605441 764523 890661 687938 638393 750466 99596 774313 503141 588015 75149 604962 265226 390177

Example 3:

Input: 55 994602 850896 996895 553739 379332 824501 257460 354132 313252 266829 203462 452198 997996 527485 353992 973148 628915 568044 683065 965981 546193 585387 26722 96285 170817 469189 6499 457452 152226 322032 750191 521924 815500 22404 931981 499538 330725 110404 468850 244859 105379 510785 777431 704476 442797 34254 334420 775881 365904 188952 815624 537046 469194 38829 506627
Output: 506627 38829 469194 537046 815624 188952 365904 775881 334420 34254 442797 704476 777431 510785 105379 244859 468850 110404 330725 499538 931981 22404 815500 521924 750191 322032 152226 457452 6499 469189 170817 96285 26722 585387 546193 965981 683065 568044 628915 973148 353992 527485 997996 452198 203462 266829 313252 354132 257460 824501 379332 553739 996895 850896 994602

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Rune and the Jasper scrolls - EASY Coding Problem | CodeTikki