CT22972

Qadir's Wild Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

It is audit day at the marble forum of Argentium. Qadir spreads the weights records across the table and picks up a sharp pencil. Task: Two arrays are each sorted non-decreasing. Print one sorted array containing all of their elements. Input format: First line: n and m. Second line: n sorted integers. Third line: m sorted integers. Output format: Print n+m sorted values space-separated. Constraints: 1 <= n <= 520; -1000000000 <= a[i],x <= 1000.

Example 1:

Input: 233 29 -992520108 -992040681 -990965486 -989135767 -986884158 -982397942 -981958882 -972640746 -972188863 -971787844 -969075745 -968578486 -966415723 -951094221 -950708946 -950092510 -930944512 -925078098 -923133466 -916973507 -913720439 -913437473 -913294377 -903458377 -902970741 -901473760 -896604499 -889950726 -888892587 -887742826 -878693217 -866323078 -864742112 -849576396 -845182491 -835403324 -820153164 -815277682 -812619558 -810571042 -803736364 -801141168 -801127384 -800458378 -788022531 -784506390 -783817290 -783098952 -780219226 -777940702 -774108732 -771323354 -768354380 -767569146 -766716669 -765542716 -765244815 -762068686 -753954717 -753197864 -751800952 -747200119 -739834118 -734310440 -731464394 -731011852 -723108992 -712140551 -706699476 -695693674 -692678440 -689464747 -…
Output: -992520108 -992040681 -990965486 -989135767 -986884158 -982397942 -981958882 -972640746 -972188863 -971787844 -971351414 -969075745 -968578486 -966415723 -951094221 -950708946 -950092510 -941276409 -930944512 -925078098 -923133466 -916973507 -913720439 -913437473 -913294377 -903458377 -902970741 -901473760 -896604499 -889950726 -888892587 -887742826 -880953240 -878693217 -876591635 -866323078 -864742112 -849576396 -849544564 -845182491 -835403324 -820153164 -815277682 -812619558 -810571042 -810078896 -809883823 -803736364 -802853684 -801141168 -801127384 -800458378 -788022531 -784506390 -783817290 -783098952 -780219226 -777940702 -774108732 -771323354 -770339336 -768354380 -767569146 -766716669 -765542716 -765244815 -762068686 -753954717 -753197864 -751800952 -747200119 -739834118 -7343104…

Example 2:

Input: 51 66 -985336206 -983902805 -958730832 -949170992 -941675371 -935987749 -891599015 -862302452 -810349242 -805332748 -797678131 -693448046 -664004406 -646552535 -645467730 -550049645 -542390978 -530894770 -515064567 -478921376 -475328296 -455099101 -446728673 -446682215 -419644038 -390829335 -371702496 -339368712 -332286576 -329009345 -307027240 -279383688 -276330486 -260576806 -257023249 -232514005 -222753533 -217336181 -214584759 -195617445 -189090941 -153920370 -144142803 -135724767 -116709044 -105752411 -75611679 -69743301 -57412432 -26753319 -10148779 -966727669 -946679410 -902915911 -900203124 -880096764 -875447184 -848341394 -838109009 -831854669 -828526958 -817353840 -815391075 -801606366 -785932905 -785267769 -753475186 -744745173 -732868855 -707713765 -688378752 -660453343 -636094…
Output: -985336206 -983902805 -966727669 -958730832 -949170992 -946679410 -941675371 -935987749 -902915911 -900203124 -891599015 -880096764 -875447184 -862302452 -848341394 -838109009 -831854669 -828526958 -817353840 -815391075 -810349242 -805332748 -801606366 -797678131 -785932905 -785267769 -753475186 -744745173 -732868855 -707713765 -693448046 -688378752 -664004406 -660453343 -646552535 -645467730 -636094103 -622707056 -580384793 -573705894 -550049645 -542390978 -536705204 -530894770 -522195353 -515064567 -514537692 -491916243 -478921376 -476601934 -475328296 -455099101 -446728673 -446682215 -439530196 -419644038 -400372343 -390829335 -375351879 -374006436 -371702496 -366916665 -355006598 -349710649 -339368712 -332286576 -329009345 -317796932 -313701876 -313605257 -307027240 -296525699 -2953901…

Example 3:

Input: 220 35 -994942496 -989084500 -987090861 -983234964 -978898192 -977856823 -973579998 -962103506 -960411229 -955366034 -934970479 -927573559 -927400197 -916101382 -910674004 -909349309 -903623148 -899129622 -898821950 -894264114 -880679965 -865304278 -864511376 -857353152 -856438935 -850983660 -849988913 -844168567 -843916365 -841334897 -839814288 -837260271 -835790568 -829647441 -829118684 -824690780 -820313673 -813593470 -811810778 -809494016 -805016344 -804322349 -797573771 -793314483 -789723502 -789327091 -778679560 -778286560 -773106778 -765062534 -753688752 -730102955 -729221760 -725696023 -724413670 -720303860 -719159527 -717915690 -714771684 -713235156 -712306571 -711987056 -710482805 -709519266 -707687952 -704131988 -695084785 -694274407 -676577991 -674939154 -656322640 -646091953 -…
Output: -994942496 -989084500 -987090861 -983234964 -979597665 -978898192 -977856823 -973579998 -962103506 -960411229 -955366034 -945480471 -944604323 -941439975 -934970479 -927573559 -927400197 -921602093 -916101382 -910674004 -909349309 -903623148 -899129622 -898821950 -894264114 -880679965 -870676833 -865304278 -864511376 -857353152 -856438935 -856223846 -850983660 -849988913 -846520445 -844168567 -843916365 -841334897 -841210886 -839814288 -837260271 -835790568 -829647441 -829118684 -825683936 -824690780 -820313673 -818837642 -813593470 -811810778 -811272593 -809494016 -805016344 -804322349 -797573771 -793314483 -789723502 -789327091 -778679560 -778286560 -773106778 -771501355 -765062534 -753688752 -740391995 -736394467 -730102955 -729221760 -725696023 -724413670 -720303860 -719159527 -7179156…

Constraints:

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

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