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
    stanwww  commented on Oct. 24, 2024, 7:47 p.m.

    What is in test case #2?


    • -4
      thomas_li  commented on Oct. 25, 2024, 11:57 a.m.

      the input


      • 1
        stanwww  commented on Oct. 27, 2024, 2:41 a.m. edit 4

        I mean specifically the contents inside the input of test case #2 and can anyone give hints of what is test case 2. In addition what is the constraints of strings? Plus why is the output clipped 1 character long? Make a wish to make my solution correct.


  • -2
    EricHan  commented on Aug. 24, 2022, 12:38 a.m. edit 2

    PerHaPs the only way to solve this problem is to give Pray to quantum and Hope he gives a solution....


  • -5
    cchungelliot  commented on March 6, 2022, 8:34 p.m. edit 9

    This comment is hidden due to too much negative feedback. Show it anyway.


  • 0
    dchoo333  commented on July 16, 2021, 8:59 a.m. edit 2

    There are only 9 AC Submissions, and most of them are in PHP.


  • 2
    dmojme  commented on March 10, 2021, 3:12 a.m. edited

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


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

    take a close look at the link of this question.


  • 10
    vpro8725  commented on Oct. 29, 2019, 12:46 p.m.

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


    • 15
      Super_User  commented on March 2, 2020, 2:35 a.m.

      perhaps


  • 2
    lele  commented on Jan. 24, 2019, 2:08 a.m.

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


    • 3
      Dmoj_User  commented on March 10, 2021, 3:10 a.m.

      abcd
      abcde


  • 7
    IanHu  commented on Dec. 20, 2018, 2:24 a.m. edited

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


  • 8
    Arihan10  commented on Dec. 19, 2018, 1:59 a.m. edit 4

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


  • 9
    1015449  commented on Oct. 6, 2018, 6:37 a.m. edit 2

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


    • 3
      IanHu  commented on Oct. 20, 2018, 1:41 a.m. edited

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


  • 22
    indra  commented on July 26, 2018, 4:43 p.m.

    what


  • 13
    StirFry  commented on May 10, 2018, 3:09 p.m.

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


  • -3
    Roronoa_Zoro1540  commented on April 21, 2018, 4:27 p.m.

    Perhaps


  • 14
    crackersamdjam  commented on April 1, 2018, 7:44 p.m.

    Clarification please?


  • 22
    zscoder  commented on April 1, 2018, 4:57 a.m. edit 2

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


    • 11
      quantum  commented on April 1, 2018, 10:18 p.m.

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


  • 11
    BigBoy  commented on April 1, 2018, 4:50 a.m.

    I dont understand