Hello, World! (Hard)

View as PDF

Submit solution

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

Problem type

Kirito found the problem Hello, World! to be very nice. So nice, he asks you to solve it not once, nor twice, but thrice.

He also tells you that this problem is totally legit as evidenced by the many comments below that praise the problem for how legit it is and its hextremely professional judging output.

It's not like this is a joke problem meant to demonstrate an obscure judge feature or something...

Input Specification

There is no input.

Output Specification

Hello, World!, 3 times, on three different lines.


  • -4
    CenteredBloom  commented on Feb. 2, 2023, 7:21 p.m.

    yo, I tried

    print ('''Hello, World! Hello, World! Hello, World!''')

    print("Hello, World!") print("Hello, World!") print("Hello, World!") for x in range(3): print("Hello, world!")


  • 0
    linkylinky  commented on May 25, 2022, 6:23 p.m.

    This is the best problem I never saw.

  • -7
    MrBloc01  commented on Aug. 20, 2021, 9:50 p.m. edit 2

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

  • 5
    ayay9  commented on June 14, 2021, 8:13 p.m. edit 2

    This problem is solvable with the provided information through the description right? I'm just making sure there is no inside joke/knowledge required

  • 12
    Dmoj_User  commented on Feb. 28, 2021, 5:02 p.m.

    Small hint: this question is not solvable using text.

  • 7
    lHarryl372  commented on Sept. 2, 2020, 6:32 p.m.

    dam this question sic

  • -39
    DsaidyB  commented on July 29, 2020, 12:31 a.m. edit 14

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

    • 23
      wleung_bvg  commented on July 29, 2020, 1:02 a.m.

      This problem was created as a joke and should be treated similarly to April Fools' Day problems. The solution usually involves interpreting some tricky phrasing of the problem statement and/or getting into the mind of the problem setter.

      • -24
        DsaidyB  commented on July 29, 2020, 1:21 a.m. edited

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

        • 11
          wleung_bvg  commented on July 29, 2020, 10:55 a.m. edited

          You generally should not expect to receive help on these types of problems, though it appears the problem setter added some hints to the checker which might be of some assistance? Personally, I haven't figured out the meaning of the hints though.

          • -26
            DsaidyB  commented on July 29, 2020, 11:23 a.m. edit 5

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

            • 14
              Kirito  commented on July 29, 2020, 5:18 p.m.
              1. If solving the problem doesn't seem worth it to you...then don't do it? No one's forcing you to solve this.
              2. The checker's outputs are actually directly correlated to how close you are to the correct solution. Figuring out this correlation is left as an exercise to the reader.
              3. Problem was lowered to 1 point as there were requests to have the April fool's type problems changed to 1 point.
              4. The extra text does provide an extra hint. Hints are not solutions. The main reason behind adding it was to drive home the fact that this is not a standard problem, and unless you enjoy solving riddles, this problem will likely be very frustrating.
              5. Please do not post spoilers/solutions in the comments.

  • -34
    Kirito  commented on June 10, 2020, 1:09 a.m.

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

  • 15
    JohnstonLiu  commented on Feb. 7, 2020, 1:48 p.m.

    I need to learn how to read.

  • -4
    harry7557558  commented on Jan. 30, 2020, 2:09 p.m. edited

    I tried to create three printing threads and got CE.

  • 23
    RonldLiu  commented on Jan. 26, 2020, 8:19 p.m.

    i believe this is a troll question

    • -11
      Kirito  commented on Jan. 27, 2020, 10:01 a.m.

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

      • 10
        chessdongdong  commented on Feb. 8, 2020, 10:12 a.m.

        @Kirito This is a bad problem, posting this problem wastes the time of beginners just learning to code. Making a problem like this wastes a lot of their time. I recommend the answer to be posted outwards for this question that is a play on words. If you think this is not a good suggestion the majority of people, dislike. If this comment gets way too many dislikes, I will quit this problems and recommend others to do so too.

        • -4
          Kirito  commented on Feb. 8, 2020, 2:17 p.m.

          Regarding your first point, it should be exceedingly obvious from the comments that are now posted that this is not a standard problem. Anyone looking for easy standard tasks can check out the scores of CCC, COCI, DMOPC, TLE, and other miscellaneous problems posted.

          As for posting the solution, there is no point in posting the answer to a riddle. DMOJ has other esoteric problems if you wish to solve those, and many more standard problems for beginners to attempt, as mentioned above.

          • 15
            geese  commented on Feb. 8, 2020, 3:10 p.m.

            You are overestimating humans/beginners, back when I started I thought that you had to get all the lines of input in one input(). It is true that newbies should be trying easy problems ( the basics are everything ) but casuals are naive, they won't know any better to read the whole thing before trying it, no less care about the word "Hard" in the title. It's like youtube where people don't read the description or reddit where people only comment based on the headline. People are probably the dumbest creatures alive so I agree with pink avatar's sentiment of telling people to care less about a joke. Enjoy life

        • 8
          hewmatt10  commented on Feb. 8, 2020, 11:51 a.m.

          Bruh relax bro its just a problem, if you dont wanna do it, do something else. If its too hard for you, go do the one pointers first.

          • -4
            chessdongdong  commented on March 1, 2020, 10:26 p.m.

            Bruh, I am saying it on your behalf

        • 46
          Darcy___Liu  commented on Feb. 8, 2020, 11:37 a.m. edit 3

          I agree, the system is far too rigged by the admins. Why must I work hard to solve other problems, when someone with good connections to the elite can easily rely on problems such as https://dmoj.ca/problem/doom2019, https://dmoj.ca/problem/tle18p1, or https://dmoj.ca/problem/therereturnofaplusb for a free 3 points? We must share the knowledge with everyone!

          • -2
            huanghy1228  commented on Nov. 16, 2020, 12:04 a.m.

            Some of the problems are not out there!

        • 5
          13lack13lood  commented on Feb. 8, 2020, 11:35 a.m.

          just cuz u cant do it doesn't mean other people can't

          • -4
            chessdongdong  commented on March 1, 2020, 10:27 p.m.

            Bruh moment, riddles for code??? AAGHH

        • 1
          Korjwist  commented on Feb. 8, 2020, 11:05 a.m.

          lol why are you being so serious... This question is like a riddle and is just intended for fun. Also, if you are a beginner, the title specifically suggests that this problem is hard. You don’t have to criticize the author for creating a question that multiple people already got AC on. Just loosen up.

          • -13
            chessdongdong  commented on March 1, 2020, 10:28 p.m.

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

  • 2
    ryan20070709  commented on Jan. 13, 2020, 10:42 p.m.

    How do you do this question(Help plz)

  • -1
    Korjwist  commented on Jan. 9, 2020, 7:50 p.m. edited

    Can anyone give a piece of advice on how to approach this question? Is there a trick to this question that I haven't realized?

    Edit: Got it...

  • 9
    SeanJxie  commented on Oct. 21, 2019, 10:07 p.m. edited

    I (no joke) cannot get this. I've tried FIVE(5) times.

    EDIT: I've given up.

  • 2
    IanHu  commented on Oct. 14, 2019, 11:15 p.m.


  • 27
    CheezWhiz  commented on July 8, 2019, 3:34 p.m.


  • 18
    slowmomoe  commented on May 3, 2019, 4:55 p.m.

    This is for sure an AD Hoc question

  • 14
    wleung_bvg  commented on April 27, 2019, 10:33 p.m.

    So much for getting serious.