CT26910

The Descending Order of the Wistful shelves

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the gull cliffs of Screech Point, Omkar studies rows of shelves 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 <= 737; -1000000000 <= a[i],x <= 1000000.

Example 1:

Input: 213 -191896814 -954712301 -139037573 -968337737 -520746585 -386449505 -791118228 -609651874 -255307845 -392522891 -721236981 -971581486 -148198876 -31184213 -43524558 -867386848 -728444497 -849962456 -142624052 -916351281 -747165674 -884339419 -372087816 -684624228 -462886059 -921562499 -794753915 -507647775 -893260412 -299912522 -403212131 -10155312 -983334504 -331671311 -177649698 -31965613 -188229522 -242101472 -487977969 -482628368 -815282837 -694656455 -273964963 -604629509 -359574080 -836907674 -925152280 -899230426 -203961133 -367706420 -55263582 -943286612 -163759723 -127511728 -776718482 -314279611 -564339103 -757093688 -416044130 -879782203 -837209988 -721986389 -833577590 -24531706 -4452195 -198558579 -474139834 -175911995 -217570857 -268879262 -962929716 -827355028 -432911770 -…
Output: 698732 -4452195 -9701848 -10155312 -11896293 -15932582 -16514560 -24531706 -27751639 -29383167 -30217486 -31184213 -31965613 -35537664 -43524558 -55263582 -65378782 -73880241 -82081620 -111109507 -111507578 -122913488 -125975334 -127511728 -130594636 -135867545 -139037573 -142624052 -145285883 -147479204 -148198876 -162182093 -162641063 -163759723 -171225876 -171527290 -174671880 -175228103 -175911995 -177649698 -178606348 -183763987 -188229522 -190619588 -191896814 -195554002 -198558579 -203961133 -209445749 -217570857 -222740273 -230330382 -241294213 -242101472 -255307845 -259816151 -268879262 -273964963 -278889618 -283209882 -286964566 -297821520 -299912522 -314279611 -331671311 -343591478 -345567526 -359574080 -363063664 -364875389 -367706420 -367945430 -370095616 -372087816 -381897097…

Example 2:

Input: 582 -817532568 -490237466 -592517263 -889143755 -881063624 -340651875 -107389886 -244997106 -708093752 -245017735 -942647675 -41246461 -104001703 -974977559 -992706136 -236864753 -499802819 -919400121 -590633546 -312200246 -231733238 -930467090 -179560837 -862643290 -646070231 -993418341 -483320523 -187063677 -753773444 -643155424 -388160780 -725159653 -188540221 -953461367 -412891379 -720404981 -135421090 -486498437 -562913630 -86763717 -943694251 -347617009 -114997838 -285050322 -281507261 -807720946 -504069868 -701473020 -184593474 -758121499 -207125874 -48564130 -170278287 -863555172 -152220330 -913375858 -60028515 -251562200 -309377000 -610937386 -44763014 -699645047 -646612843 -404361875 -722269121 -293456354 -3512607 -658977627 -171116545 -997398524 -42340087 -921606720 -765014290 -…
Output: -3512607 -7068790 -9932334 -10557732 -12199471 -13933214 -14914130 -17077848 -20261363 -24445732 -25226509 -28371193 -29087991 -29724967 -30448306 -36292909 -37580884 -39786167 -41246461 -42340087 -44763014 -45041893 -48564130 -49504108 -50335418 -51358381 -51405136 -54104536 -55091114 -56946747 -58175079 -60028515 -60117560 -60855671 -63584923 -65589254 -67718663 -70812643 -71900328 -76305032 -76658347 -79694995 -80084446 -80343468 -86763717 -87820124 -88111891 -88831348 -89507432 -90006874 -90589485 -93874239 -94212898 -96323725 -96346379 -98027450 -98305741 -99074448 -99175761 -101911764 -103445911 -104001703 -106207294 -106635468 -107387662 -107389886 -110009974 -110329154 -112821714 -114997838 -116514172 -118799854 -119028305 -122207510 -123891270 -125586193 -126436023 -127983030 -129…

Example 3:

Input: 288 -9084313 -505983809 -892597384 -39677668 -419151139 -20252566 -553488388 -25499056 -719179561 -192995968 -759069255 -948811206 -871123293 -627162790 -568220376 -844591851 -388891328 -361201470 -804809232 -961300925 -400058040 -623142049 -288913584 -774649568 -766161450 -27156697 -846577722 -252542067 -640634310 -136201307 -861860086 -898399325 -193359275 -431439043 -877033441 -976782992 -100180042 -415790458 -501198664 -805202268 -832726262 -372219024 -897495024 -24145443 -610081575 -546948312 -735173596 -560570714 -177637979 -210012254 -637074670 -12105913 -385190728 -424583612 -533827192 -724697019 -123606143 -652397173 -306950205 -538824947 -294638843 -521344553 -201781491 -726079335 -439805148 -850610074 -687576086 -215055614 -557691250 -782092499 -125703664 -536571213 -724642721 -…
Output: -9084313 -10118623 -12105913 -15667569 -20252566 -24145443 -25499056 -27156697 -36485968 -37629045 -39677668 -40478740 -51153734 -64037025 -69081705 -72897949 -73417526 -76789521 -78557090 -79870312 -80989048 -82935267 -84869042 -97857925 -98109150 -99810246 -100006207 -100180042 -116788398 -123606143 -125703664 -129132371 -129404031 -131579477 -136027167 -136201307 -146175386 -147279674 -158152981 -161380670 -164427581 -164611168 -166911024 -170177261 -171974064 -174352152 -175906851 -177637979 -181266549 -182290468 -192995968 -193359275 -194324980 -198914841 -201781491 -204987685 -210012254 -215055614 -219329614 -219646817 -230980970 -237274129 -242760430 -243462079 -243709743 -248798537 -250689718 -251937981 -252542067 -256621856 -259757316 -266459298 -269359748 -270160580 -274100507 -2…

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Descending Order of the Wistful shelves - EASY Coding Problem | CodeTikki