CT27062

Wade's Sable Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the eel marshes of Slitherwick, Wade studies rows of crates entries. One clean number will settle the guild's oldest argument. 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 <= 295; -1000000000 <= a[i],x <= 1000000.

Example 1:

Input: 269 -215126077 -84827780 -922578890 -292480950 -997749834 -646125184 -452315334 -861112008 -839011499 -285770258 -155835159 -131696549 -23908958 -728943002 -18783704 -595806039 -87015307 -115883994 -366044410 -736085259 -79205950 -503423415 -193341582 -221835239 -948897010 -83709264 -98104968 -218268544 -940017449 -575983771 -488442236 -142376358 -833861216 -803064443 -745913709 -632730142 -387357523 -722194319 -955615581 -465006230 -432537114 -565098826 -119054869 -100788673 -508062446 -335188544 -691330079 -750119316 -218884340 -621508119 -156722935 -620051994 -799879697 -455548001 -973248713 -537682793 -116356492 -216305180 -949022172 -375873617 -839041224 -887930235 -150575418 -995153325 -882953625 -21208488 -555470378 -611617225 -728333923 -607482984 -367161293 -80798523 -518605730 -4…
Output: -1368058 -11064336 -13851107 -18783704 -19934219 -21208488 -23908958 -27292356 -31386273 -34409241 -35388467 -48500316 -54839955 -63567565 -69852711 -74099611 -75514682 -76676063 -77719418 -78264140 -79205950 -80366104 -80743932 -80798523 -81231826 -83709264 -84827780 -87015307 -87062088 -93625306 -96021485 -98104968 -100788673 -110251817 -112119267 -112892755 -115883994 -116356492 -116727839 -119054869 -123541202 -123717908 -124227346 -124667015 -128683517 -130404185 -131447533 -131696549 -134555533 -135098526 -142376358 -143029102 -144486059 -146152652 -150575418 -155835159 -156722935 -158642551 -159063424 -175432178 -183188509 -186331372 -193341582 -194241837 -196690153 -201509027 -214791200 -215126077 -216305180 -218268544 -218884340 -221835239 -225363370 -229620779 -231240993 -2343929…

Example 2:

Input: 72 -855622923 -607093361 -977587555 -73825201 -198070542 -435065420 -376411373 -71836840 -897027270 -321934912 -753420549 -408345789 -485566855 -196725399 -392816863 -19984650 -90958827 -651723803 -668478391 -982327121 -888556016 -632376231 -577942658 -578881449 -397030421 -946113888 -627381209 -165091014 -405188021 -715546608 -996552050 -505602747 -181267143 -805396822 -201557 -851832199 -46166431 -657562782 -787377385 -199890104 -944875083 -276534648 -433925882 -288126042 -246274630 -253222645 -525331951 -99665865 -406947907 -602847876 -808737782 -53904502 -530285117 -756183350 -10608204 -787659749 -201214881 -66495562 -980544188 -755962016 -695311996 -673760501 -659340307 -154722044 -613260365 -811391285 -601237788 -480499810 -539453270 -417127361 -175900339 -604793017
Output: -201557 -10608204 -19984650 -46166431 -53904502 -66495562 -71836840 -73825201 -90958827 -99665865 -154722044 -165091014 -175900339 -181267143 -196725399 -198070542 -199890104 -201214881 -246274630 -253222645 -276534648 -288126042 -321934912 -376411373 -392816863 -397030421 -405188021 -406947907 -408345789 -417127361 -433925882 -435065420 -480499810 -485566855 -505602747 -525331951 -530285117 -539453270 -577942658 -578881449 -601237788 -602847876 -604793017 -607093361 -613260365 -627381209 -632376231 -651723803 -657562782 -659340307 -668478391 -673760501 -695311996 -715546608 -753420549 -755962016 -756183350 -787377385 -787659749 -805396822 -808737782 -811391285 -851832199 -855622923 -888556016 -897027270 -944875083 -946113888 -977587555 -980544188 -982327121 -996552050

Example 3:

Input: 271 -278880976 -884865691 -975270037 -993900106 -832610268 -582362309 -783965581 -997039035 -552092711 -652117831 -819774604 -669347642 -118243913 -805865457 -754389909 -232520175 -264826032 -261182760 -124460466 -652598909 -468712469 -420859481 -172505210 -208902020 -193752412 -487764590 -318257450 -341519565 -573699294 -920209216 -137562755 -93668997 -952170740 -671906782 -594397218 -190068562 -878307372 -78131321 -518015669 -667335824 -667833967 -423709451 -132273003 -366051186 -63408428 -318345568 -68516989 -495949787 -856948664 -339169505 -55700604 -804671828 -436050152 -104639705 -87169297 -404904819 -966957941 -194236094 -167228268 -789021579 -102859728 -50567103 -828155456 -729827545 -113958623 -450959287 -226283613 -145001566 -90331381 -77656972 -396876629 -860309415 -328226846 -9…
Output: -5418028 -20226221 -28758478 -30438760 -34196955 -34403487 -34512685 -36773484 -43785485 -44273825 -44396739 -49483242 -50567103 -52976157 -54663932 -54939483 -55700604 -63408428 -68516989 -70901208 -77656972 -78131321 -87169297 -89723297 -90331381 -93668997 -102859728 -104639705 -106387368 -107777603 -111312778 -113473556 -113958623 -115867304 -118243913 -118623840 -119072733 -120488495 -123767476 -124460466 -130631447 -132273003 -137562755 -138047465 -142752050 -145001566 -150161866 -151612946 -151635196 -157397500 -160231632 -167228268 -168138083 -172505210 -177559009 -185530979 -190068562 -193752412 -194236094 -198045983 -202328672 -207061098 -208902020 -223745435 -226103227 -226283613 -232520175 -233508447 -239414662 -244208301 -246013912 -252091140 -252952456 -253117575 -258037932 -2…

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Wade's Sable Ledger - EASY Coding Problem | CodeTikki