CT27169

Navigator's ingots Reckoning

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the frontier camp of Duskwood opens only for a perfect tally of ingots. Navigator 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 <= 229; -1000000 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 11 133429969 356493257 984222062 599243050 39236991 457334632 625942751 737676194 93784180 705387549 136199847
Output: 136199847 705387549 93784180 737676194 625942751 457334632 39236991 599243050 984222062 356493257 133429969

Example 2:

Input: 225 363036514 840165799 605923123 689932754 380578777 637873545 337094417 406607931 312383679 616759629 168911932 174948654 261575560 607282296 787488371 997767709 861799769 395243577 367268158 752245230 893981899 362681775 439063454 127513765 971514977 495303020 234229548 149233806 184054235 990080184 665696499 531630050 47982148 272362459 572619119 299619290 585584511 993911734 91599191 227457870 26007862 317722096 389065695 729339680 383946419 668843919 470608037 304310895 194865677 602597582 930415972 136638401 422778995 642710086 934808850 915088982 43305609 580414373 381240319 511244482 474227312 527791771 242788926 314209087 399391742 291781596 446880769 837835060 554858040 200852007 862787990 76636974 888260955 568907442 49732352 594886492 914558238 447930751 107898862 961449390 68…
Output: 912310551 949369024 730632517 46705266 344011526 786078041 292471033 236405962 853014737 117006017 789078353 875576875 464328093 680548386 906420323 333297611 562385654 279774059 549746359 360815996 371317404 222708343 103924485 222357063 549826467 620354428 935672160 307992153 714903751 322917314 602587075 748662300 825664598 280008216 270913891 36227523 282142688 959438935 178705970 792424984 128036118 255926726 531880683 258278486 551542870 494179094 207864378 306579808 933540845 530990072 312084566 766188739 583517982 637403415 27037243 712229400 782623487 242450961 395808830 312393811 243221020 954295800 41729156 990242316 488605069 619018972 926168169 359930633 564070197 532907503 97629159 800435349 335835222 520385886 318071583 657777574 886806385 531447329 668524621 30557991 414399…

Example 3:

Input: 155 722395120 918105879 755467006 115364306 379811985 683881039 770786833 415782103 18881796 810989642 998697136 537674473 112129354 625031997 379870736 671431961 520576670 460572316 661162800 742659876 48469552 507525899 26408612 532395090 560733978 383710661 402651013 723623412 802275727 938496427 945664611 53636947 666145107 870886100 659560525 363346950 262056041 995838036 603566800 141556643 990033426 746967483 496143874 475703976 573751534 859559877 988142206 738070366 374752623 23030046 966983384 702303524 341573089 851314266 193407269 742733410 31374270 912877626 604790739 87477898 131061754 28739613 811274410 983848383 214843305 761956350 492333462 500464784 702651176 963497615 917566975 350978517 93678392 395889068 527932723 380746115 928432171 444543010 965447551 805908761 37889…
Output: 838214208 495495476 272094240 80635738 608963784 325001500 287636897 649012719 216015753 692935082 519702105 144066803 520243990 990558406 554764011 291930071 614143687 785196151 30410482 270860309 440521384 830590676 433044124 165598878 416561794 747522859 120362061 458325484 443125549 390733760 693383371 42070955 732886786 207389101 478901105 810589385 242204142 504052527 514274299 560609726 406420120 699309924 553773691 76964562 316451135 264286671 513243012 786803032 617262492 966127332 28834757 717532561 30681120 595402112 8624314 642111479 292067796 197979827 285628144 223081453 404588902 652089709 385944407 179427354 918134470 240392988 670265045 670498580 718610421 563462955 684866775 719046392 363297676 485664106 378899307 805908761 965447551 444543010 928432171 380746115 52793272…

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Navigator's ingots Reckoning - EASY Coding Problem | CodeTikki