List Minimum (Harder)

View as PDF

Submit solution

Points: 7
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

After sorting numbers all day, perhaps you would like to sort strings instead! Such a wish is easily granted, perhaps because His Imperial Majesty, the Dark Lord and Paramount Leader of Dmojistan feels like granting wishes today!

This is such a trivial task, of course, perhaps you are wondering if there is a catch. Why should His Imperial Majesty, the Dark Lord and Paramount Leader of Dmojistan tell you? Perhaps because My Dark Master the Lord quantum feels like granting wishes? Well, My Dark Master the Lord quantum is only quite willing to grant you one wish, perhaps. Well, not perhaps, for it is a fact.

Perhaps you are questioning My Dark Master the Lord quantum's power? Well, perhaps disaster awaits you. Good luck, perhaps. 😆😛

Sample Input

2
abce
abcd

Sample Output

abcd
abce

Comments


  • 0
    dmojme  commented on March 9, 2021, 10:12 p.m.

    Dear Dark Lord quantum... What is the correct output to Test Case 2?


  • 2
    Caveman  commented on Nov. 10, 2020, 6:59 p.m. edit 3

    take a close look at the link of this question.


  • 8
    vpro8725  commented on Oct. 29, 2019, 8:46 a.m.

    Why are the best solutions only in PHP? Is this the meaning of PerHaPs?


  • 1
    lele  commented on Jan. 23, 2019, 9:08 p.m.

    If input: " 2 abcd abcde" Then what is the output? "abcd abcde" or "abcde abcd"?


    • 1
      Dmoj_User  commented on March 9, 2021, 10:10 p.m.

      abcd
      abcde


  • 6
    IanHu  commented on Dec. 19, 2018, 9:24 p.m.

    Dear Dark Lord quantum... What is the correct output to Test Case 2?


  • 7
    Arihan10  commented on Dec. 18, 2018, 8:59 p.m. edit 2

    Dear Dark Lord quantum... What is the correct output to Test Case 2?


  • 7
    1015449  commented on Oct. 6, 2018, 2:37 a.m. edited

    Wish to Dark Master Lord quantum: What is the correct output for testcase 2?


    • 2
      IanHu  commented on Oct. 19, 2018, 9:41 p.m. edited

      No idea..... test case 2 is so strange


  • 19
    indra  commented on July 26, 2018, 12:43 p.m.

    what


  • 10
    StirFry  commented on May 10, 2018, 11:09 a.m.

    Perhaps I'm not skilled enough to solve this... perhaps... :(


  • -5
    Roronoa_Zoro1540  commented on April 21, 2018, 12:27 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • 16
    crackersamdjam  commented on April 1, 2018, 3:44 p.m.

    Clarification please?


  • 17
    zscoder  commented on April 1, 2018, 12:57 a.m. edit 2

    Wish to Dark Master the Lord quantum : What is the correct solution to the problem?


    • 8
      quantum  commented on April 1, 2018, 6:18 p.m.

      Perhaps the problem statement contains enough hints... perhaps...


      • 2
        bestcreatorT  commented on Sept. 27, 2020, 1:40 a.m.

        It simply does not.


      • 18
        NT_AUTHORITY_SYSTEM  commented on Oct. 20, 2018, 1:52 p.m.

        perhaps


      • 6
        xxsc  commented on July 8, 2018, 9:52 a.m.

        ...At least quantum told you something...


  • 10
    BigBoy  commented on April 1, 2018, 12:50 a.m.

    I dont understand