CT23722

Wynne and the Descending Order

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the northern keep of Frostgate pays by the answer, and Wynne intends to earn it. First: the full register of vials. 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 <= 942; -1000000000 <= a[i],x <= 1000000000.

Example 1:

Input: 335 785566665 -907827748 -378194814 -236838968 143134289 933510871 397040139 -6146345 149438225 338016800 314316852 696575450 -404195940 -747801901 -36792168 -748190377 721250651 762058658 -478793131 444563152 866242198 -11568127 -52759014 452591733 -1524737 -462106201 379442794 -719738020 -813925073 374605452 992598540 437236338 -186118275 -248602955 -358796921 -468129450 731944132 -593484650 -388346718 665391582 -405909937 -374560250 -881086186 841053671 -827177183 -156238542 415101426 816362427 -468123248 646438120 -332342427 -770432417 469725049 -412526163 72115296 -550884682 -213125888 52177661 -406530158 522140504 -995258775 836410807 -195441454 394504742 -516490196 -992352975 -170274225 398955804 -47459895 471531247 -843882756 306461094 -79453774 126375653 -25220086 724333304 681814…
Output: 994193728 992598540 991784752 990546375 985838764 976549049 961493703 945325270 941836938 938393800 937108541 933510871 930118882 904317898 891555125 889203949 887305751 880903178 880064464 870062353 868843487 868014302 866242198 849801386 844719571 841053671 836410807 834812515 833722861 833316823 829330908 826908876 824638591 816881719 816362427 810143263 809006609 805688623 804722757 800990314 800885132 794435268 785570157 785566665 774281020 772595609 762058658 747790864 732304958 731944132 724620311 724333304 721250651 709706957 702093316 699693584 696575450 681814257 676039821 674901605 668714555 665391582 663568241 651501128 646438120 624160249 623868522 622773250 620617015 619425041 608781400 596596997 590245522 589294061 582872807 575351193 562266512 546371424 539549729 533633256 …

Example 2:

Input: 200 -276692956 160983911 155798035 322283510 -845232992 55920351 -216910838 1176037 -828980677 -692899206 457758488 975914528 -534643776 -225998433 129184219 -930426325 -612031861 -154162167 -678661799 996423370 978366017 -369359641 525261475 -834633259 57046567 574633477 -701131592 253678604 483896672 -528045358 189118222 650296574 969112202 -661375313 434152496 -826928611 -707334082 -800274744 321529652 -959777807 635588213 353337225 -466040815 -78595526 -719474337 -631300529 159669489 909833082 -782108796 378515427 -722638580 -321772476 -513071136 -292362033 -822040147 -796716530 -11767095 -15312973 -339286759 -770343050 -418715985 345316279 535730400 141520388 97846796 -763518453 -302412379 772604324 29429042 543235020 -946072641 -553392968 -792163221 -889215206 -605647996 -222304478 1…
Output: 996423370 982689213 980523160 978366017 975914528 969112202 957082294 949404575 930153957 909833082 885032581 873361070 810940956 795397454 772604324 765474824 747961347 723958674 690189472 651960294 650296574 650140121 650124590 642038848 635588213 626071097 616683221 574633477 565675363 543235020 535730400 530997843 525261475 493130866 490174213 483896672 483012844 469791876 463691377 457758488 451449540 435586775 434152496 426031610 412649757 386001578 378515427 375011752 357384169 353337225 350576591 345316279 340498001 330541604 322283510 321529652 320421952 305982484 301684837 301440001 299597414 275452475 269248581 256537676 253678604 211155903 211095941 208148232 200781526 197985395 193075580 189118222 187527088 169754907 164774291 160983911 159669489 155798035 141520388 134686267 …

Example 3:

Input: 914 -763201687 926229430 195637524 -779434064 859664276 -739558069 -940587003 544160319 -149007580 486933428 -122305944 249643094 -846058661 -906427724 -945383274 850610219 579596746 617766239 -787192027 -883298769 -311694592 -216830381 76921552 355329778 -254001157 -525976762 214469753 -406453037 -130092341 -670952017 112782189 407065573 103198020 705807719 244809823 250389483 -569720910 41873935 939315687 961934706 -842097932 893534971 71239809 -557885919 -229995328 -381581885 -665907980 -869343254 451662539 -556478291 106699728 694172348 375160549 -595010172 42985207 824028161 -609367599 -352331412 779899245 529290544 224851900 990120186 526291412 806484492 -187378640 -475546217 -515734237 186420499 265046804 -159609212 659109789 -636399112 590227155 261564282 283856520 836829689 -87708…
Output: 997584679 997188796 996072252 994021090 992435376 990120186 981469755 980222174 976550550 975933640 975779023 975644046 972173613 964593545 961934706 961933827 960235387 959392503 957024065 956456426 951260114 944645878 939664946 939315687 934602084 931329728 930049837 929725606 928773965 928202047 926229430 926201464 925944663 923236694 920150072 913826178 911040244 910461677 908986395 907398756 906189040 903843921 898396804 895323166 895190845 893534971 892765238 891244238 889825934 888223281 888052460 886256686 880647901 879097381 878683992 875146660 875115373 872307008 871987974 871309522 868889301 868207656 867165638 865335089 864600713 859664276 858954960 857666885 856320195 855423184 852019968 850610219 850048736 846372621 839972300 839541563 837517569 836829689 835576114 832478217 …

Constraints:

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

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