CT21838

Bishop's tickets Reverse Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Every season at the mulberry rows of Silkmead, someone must approve the repair estimates. This year the task falls to Bishop, armed only with the tickets register. 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 <= 320; -1000000 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 112 160035520 377813303 86792785 366022653 354026133 536629901 684300068 224204147 773732626 363705705 304054175 461452069 803502625 634902860 663183561 246189391 208623237 608342563 220391076 39090986 518987205 987774854 302225379 354593839 246298068 609904303 699957654 711280703 244690561 652545341 10164180 958581635 987402181 200042898 6037896 500738530 341078398 180369734 348098032 817342856 970023239 551515149 255020335 387045193 760429549 825289661 944763938 411398153 513396082 434520144 103910135 466949015 831421312 655618438 278522253 830405942 203118261 210596952 738830694 771969868 889226660 777967541 467053365 13150374 441032523 860500962 659249933 462069813 325246800 317188719 993137789 99431531 770703159 857642143 605099482 981393146 99660587 656380741 474866043 945306834 3922…
Output: 321865770 624244372 813357070 759827635 890264240 86610549 33461854 22245969 251547580 225247548 865843594 236475849 791543774 915067854 641026648 775151000 87724024 466253493 778978618 524541514 730770861 729963542 152369072 709838442 954471808 710368184 809034590 396198003 555433333 878998373 833115327 392276401 945306834 474866043 656380741 99660587 981393146 605099482 857642143 770703159 99431531 993137789 317188719 325246800 462069813 659249933 860500962 441032523 13150374 467053365 777967541 889226660 771969868 738830694 210596952 203118261 830405942 278522253 655618438 831421312 466949015 103910135 434520144 513396082 411398153 944763938 825289661 760429549 387045193 255020335 551515149 970023239 817342856 348098032 180369734 341078398 500738530 6037896 200042898 987402181 958581635…

Example 2:

Input: 272 546809553 572853261 191977479 547979291 85602568 467710278 16411759 478846019 615269088 63122623 903304750 922918782 341614322 672523214 170919634 964509912 100884343 375993725 82076854 845760724 144734302 447365534 906260673 97735473 257550187 362757171 954524217 201480363 177922170 636040254 929577486 226606316 34480304 430650516 724006291 534978027 716890528 690909576 49386505 610905958 220796331 642802253 304946431 289728439 199584179 408918249 206147355 796287660 842613203 704293770 557070493 65946363 222624841 112403083 517813346 404494856 933804411 373396452 207563666 807953522 642831342 422249412 846855115 520673425 357683681 957689218 779768295 585043812 135577385 115669570 86456650 504511109 629911138 630001001 271002943 295473418 186365551 516122268 634119537 416808639 47542…
Output: 450246282 363219640 425327947 908745759 240533017 747166902 26586231 488761974 789632918 517510352 317451484 764002822 234275408 588086032 112526546 222612793 334433508 655767800 312216902 396630109 345964168 44479692 63648611 23611506 580200141 420769068 715418853 300909152 572930113 664490102 735274886 615994307 852931852 967422216 955736295 332516654 283752298 340557260 64627699 74830108 8387030 828684987 574612087 797738213 799312323 462871383 738118248 339873868 544718373 317795844 630101374 592654283 235946276 630198648 269030361 361997176 762391699 692240212 255513808 662429482 209312663 240410691 411450637 206399228 203142139 143268671 744156990 939617790 687183164 100429753 854109004 428935651 729434409 523025225 703667867 892416297 345050130 368569739 247055208 505090622 20792481…

Example 3:

Input: 95 670868792 732698244 630790092 182764246 540873846 818648485 363862943 65587895 97042803 578803618 683175314 843558516 578766628 713897104 178906792 177059794 969149247 98772683 661421248 942831073 818296737 800271040 371309662 908161360 543556087 404480277 213285617 810079464 999192939 904276531 206184908 299178943 19370828 587360621 965960568 20083079 864145999 82068536 271264958 433163831 549466140 354583350 140286673 895564964 101322449 964460810 764237552 808500384 96797466 477278107 58984540 877418563 295472314 354746673 764988083 105732368 135846252 340968416 562651458 617754651 434582479 313411091 369753110 67929767 558250562 818785246 667889534 923310091 750081200 243339186 243864047 994342474 795021709 925152244 162607215 256134479 873130304 642441412 721592927 7039560 74357526…
Output: 430428680 70468033 984831141 203746177 369725086 344540327 814068784 178796770 293065648 912650894 484756584 606054103 520698136 169746042 74357526 7039560 721592927 642441412 873130304 256134479 162607215 925152244 795021709 994342474 243864047 243339186 750081200 923310091 667889534 818785246 558250562 67929767 369753110 313411091 434582479 617754651 562651458 340968416 135846252 105732368 764988083 354746673 295472314 877418563 58984540 477278107 96797466 808500384 764237552 964460810 101322449 895564964 140286673 354583350 549466140 433163831 271264958 82068536 864145999 20083079 965960568 587360621 19370828 299178943 206184908 904276531 999192939 810079464 213285617 404480277 543556087 908161360 371309662 800271040 818296737 942831073 661421248 98772683 969149247 177059794 178906792 7…

Constraints:

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

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