CT23991

The readings at Masthead

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the galleon yard of Masthead pays by the answer, and Hestia intends to earn it. First: the full register of readings. 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 <= 420; 0 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 210 418891 413218 67935 399265 705667 337803 819899 612258 29448 262697 39635 66938 811506 450507 940408 34638 118576 491965 533566 776469 563456 821380 446300 773850 931940 497020 742041 120164 805879 716275 513573 444212 371309 793178 12800 719453 478454 671518 545867 899958 670182 312780 480234 428117 851696 456790 11560 600308 962988 732339 1595 444735 523379 947156 210873 40503 445163 181226 991427 384334 401357 122147 255635 714001 798437 774185 298748 288947 451280 784491 41932 877867 136913 705952 801614 80674 835178 864587 877305 685227 227735 426691 505283 904417 784768 447454 827322 398489 659270 567489 35877 750301 697153 336121 312183 31114 530065 108042 278658 674928 292858 384757 640463 951573 876173 714945 49392 873390 258376 29416 301032 954459 961720 257380 751182 35150 9…
Output: 569186 8886 463108 442301 949093 265327 23685 930425 548492 110489 728334 368032 337309 160769 426692 957843 528899 821054 767646 614254 27294 241916 959373 440172 215520 232160 392830 921160 87568 572594 364079 209039 381676 846655 344955 320255 103953 636249 571826 520390 459396 347210 247621 14934 114158 62140 620403 445251 295064 506926 261314 471151 20641 178566 857929 532332 202104 839615 857786 756710 589778 104835 643719 212977 972952 365194 784387 143318 385131 105960 720826 517205 396419 320182 59315 84236 26570 876231 592543 48463 420824 192859 36374 687524 962669 946621 143331 271050 335395 806064 533118 778696 581403 903958 35150 751182 257380 961720 954459 301032 29416 258376 873390 49392 714945 876173 951573 640463 384757 292858 674928 278658 108042 530065 31114 312183 33612…

Example 2:

Input: 236 592148 118244 903637 272643 964211 194924 854881 539460 52185 520979 68136 217392 850065 941772 364768 22794 608863 739078 368485 603135 886440 718188 895239 428333 831673 502751 230397 545065 496493 327157 287862 911821 989860 790505 183020 622518 609151 276083 494472 701777 829200 480662 208940 330350 338260 289388 938148 830783 584549 715891 475742 150969 63370 76492 114242 371715 609793 271570 868905 242039 238206 301028 470467 993987 431781 459323 875810 696301 144420 766286 668459 28561 589138 231035 968629 214039 30521 924654 434981 831413 633903 306759 118024 314005 743316 105189 739271 6980 95005 529761 585734 384748 391078 82487 83418 65020 223625 192519 173823 705250 484247 665636 958478 993440 33996 798839 214412 950309 871135 354505 403040 806833 762122 985129 429054 47436…
Output: 796575 732031 253883 237881 423472 969995 171792 705586 342696 810454 530982 845207 466411 790677 490020 132841 951169 849265 963225 702905 804801 197711 215270 11027 775672 706104 191627 453954 510041 453507 987295 7314 392561 743389 601203 178936 345204 878987 454828 475692 690435 344597 145721 614630 542480 611004 325222 370089 870448 377277 556045 171931 33644 15857 280609 486894 292988 70880 359103 52961 503532 937287 335569 904315 546699 373296 271074 926540 671513 340185 61112 148477 539081 133230 47296 905814 628297 345295 860460 453383 854064 750687 914149 4244 49177 392708 552677 353025 83126 418674 893299 702045 222141 340583 587998 857508 930263 10791 2987 447655 62592 705119 659303 963060 707022 398517 601996 395940 224592 726154 925615 308318 22205 688337 841051 239135 346385…

Example 3:

Input: 184 167488 789702 923568 642455 624432 203800 480544 934371 953358 389217 461494 704684 791713 840786 325219 4498 753696 594657 281227 646817 919892 893450 867183 858589 358466 154690 279244 61388 961946 35582 526250 29023 192809 28667 816493 887967 72093 731607 372939 273974 590483 702689 943130 630640 192082 323032 620302 991848 813209 695979 574944 437017 778618 831273 908029 934929 433097 658655 958949 719249 870582 843978 776974 560029 626151 29519 353428 354190 640774 630503 889816 128972 76148 963617 743573 962947 55954 89944 224437 855140 280677 549790 301351 397476 362040 449891 426176 59331 417298 522169 802070 84763 60536 407906 982694 114398 585848 15025 124139 300954 807824 633366 107587 323547 324464 522006 37723 731679 303825 228190 617632 588887 260886 252399 516550 911744 …
Output: 522173 243285 421189 546624 490114 759825 359916 303665 216560 63172 231322 816733 296307 616254 164006 598234 326751 686260 169725 834673 377869 669858 188508 200794 116347 784142 885115 398292 285743 821241 358907 910142 136129 828477 731847 321994 598466 430074 842603 230991 98276 390226 671729 239297 728402 460843 563419 477844 317498 931403 233560 444726 236546 107901 515459 223471 660217 745288 400763 615808 938862 369956 9425 418648 331934 948434 915082 35479 911744 516550 252399 260886 588887 617632 228190 303825 731679 37723 522006 324464 323547 107587 633366 807824 300954 124139 15025 585848 114398 982694 407906 60536 84763 802070 522169 417298 59331 426176 449891 362040 397476 301351 549790 280677 855140 224437 89944 55954 962947 743573 963617 76148 128972 889816 630503 640774 3…

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The readings at Masthead - EASY Coding Problem | CodeTikki