CT23732

The weights at Winterholt

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

At the snowberry thicket of Winterholt, Koda records each weights in a worn leather ledger. The guild wants answers, not guesses. Task: Sort the array in non-increasing order and print it. Input format: First line: n. Second line: n integers. Output format: Print the sorted values space-separated. Constraints: 1 <= n <= 539; -1000000000 <= a[i],x <= 1000000000.

Example 1:

Input: 133 -376001357 -137999269 338139342 780126323 197152683 -961705155 885457417 -367219564 651489689 -607744440 -285710537 -533039039 98559883 854562292 -779181096 885187636 -417563394 -124670591 42950943 -858267171 279317448 -706224771 922664981 825223932 501674592 782487099 983012557 -303379412 268902805 526595679 803859122 101133353 704036967 -471190387 -369823303 848386322 967895115 -471826494 -790960557 106949360 -183366083 310963117 -715539601 -273400462 -475996850 -957391524 -851993234 595443262 3440388 669283444 637976899 -294037660 432762920 424685248 761005931 -478720545 667304076 936978415 -618811364 2962323 -726078404 454872634 -87436691 979793313 33654453 217668079 -481568383 -471081291 920350566 899886965 -690236361 761821620 280696307 -155541413 476377553 709025484 77954827 209…
Output: 987143050 983012557 979793313 968911826 967895115 936978415 931234525 922664981 920350566 899886965 885457417 885187636 859957317 854562292 848386322 844713588 836737359 825223932 825012032 803859122 782487099 780126323 761821620 761005931 710682815 709025484 704036967 669283444 667304076 651489689 637976899 628203529 621841745 608320244 596081653 595443262 595042506 579313802 576490556 572575585 526595679 523980535 501674592 480239805 476377553 454872634 432762920 424685248 338139342 310963117 291491951 280696307 279317448 268902805 260207938 217668079 209496352 197152683 185630439 167012590 110164511 106949360 101133353 98559883 77954827 42950943 38169841 34340456 33654453 27831991 27759499 3440388 2962323 -34403815 -87436691 -91636224 -124670591 -137999269 -153191313 -155541413 -1756952…

Example 2:

Input: 435 -559254783 176909152 -217757717 273448891 -225775342 473652631 973639631 262742741 -803657001 -345639077 142935773 995668301 607149570 121566401 -524949051 -968982042 -503518663 707657802 721210499 433687571 434941103 802528933 -550339591 -816392156 121086712 -535626695 728398917 859869379 208423663 987952326 -681876756 61337939 -827739197 754906014 -728401455 609608717 -881112158 343137813 721193828 -181406284 -53624188 326487477 -203466579 424206478 -784901213 653252273 757055407 -887528460 -593842052 231524822 -304312873 196980286 313938080 -128126806 -722847328 208159667 833701277 231612220 301183054 -680948735 -476719102 308583360 -593173514 554556390 -810546460 -990925958 434067201 -332376878 -80610104 -445276905 810038064 -250008733 -963666016 171795816 -42967287 -165152145 6094…
Output: 997996095 995668301 993198557 990686641 987952326 986171326 984124113 983975727 978741697 973639631 963420012 954383338 948533972 943749853 925329928 917093540 912904694 907544432 900777129 895238528 884647155 877823675 870212476 866806257 863825046 863551524 860042710 859869379 856101945 855140015 839031678 838624737 833701277 825572370 823177932 819866012 817561121 815727161 810038064 802528933 796450320 792222552 790076442 780131250 768602696 766146803 758791946 757055407 755727212 754906014 749818602 739049431 728398917 721210499 721193828 719411098 713037728 711611669 709199768 707657802 701844325 700161632 693182921 690251153 685955841 677760925 676502763 674149163 673505628 673372348 673302497 668960974 665713982 661272424 658948364 656805291 653252273 650651823 647603897 643854266 …

Example 3:

Input: 442 -322030227 509632211 -327867503 -660045695 877081018 -970648406 -563098526 -614743950 -754694488 -948717756 379777930 476328278 114717473 774352709 601902532 -504337894 319431628 -221868686 -592597106 -439114484 677672785 599466198 -339614399 -113486937 -665604169 341712739 505183844 79496161 -34683 331795362 -54429721 816298307 -664123582 -510905867 382954491 607264267 -524007609 890986604 383848945 -943026620 -140131460 -243715978 163049038 450411192 -354563638 -29579706 954501109 -755561790 -205965575 -674672568 195060945 996505648 159717375 -663490225 862323497 702892001 374454661 -124969815 -155338342 134420636 221293988 -414081850 829878411 -703341242 -437937908 609527230 2866758 873400475 -550838979 -175732490 -151011974 -424874738 469354019 -454460416 283895324 630992209 -35062…
Output: 998320034 996505648 986946927 976604705 973345141 961164625 957541699 956600954 954501109 949907778 934006827 930517952 920723275 910043764 904047604 902990777 892234484 890986604 877081018 876448253 873400475 865574595 864929652 862323497 859222643 856593863 845442446 839947336 838823576 834494113 831521647 829878411 819815410 816298307 815508474 809352213 807342840 797287518 781230469 779587238 777709837 775562184 774352709 773937894 767600263 763007178 739926213 735940908 732665698 712576622 705354857 702892001 678583499 677672785 675072181 672384060 671679641 660184208 658546528 657005525 654216079 632146355 631913061 630992209 626851424 624407313 619974390 610121613 609527230 607803868 607264267 601902532 599466198 598397868 595463929 587849821 583659733 581709601 574670509 572901526 …

Constraints:

1 <= n <= 539; -1000000000 <= a[i],x <= 1000000000.

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