Organized by PICT ACM Student Chapter

Starts in


  1. Scoring is based on the number of characters used in your solution.
  2. Spaces and newlines will be ignored while counting characters.
  3. You are required to code in C++ only.
  4. Your score is inversely proportional to the number of these characters.
  5. Spaces and newlines will be ignored


No prizes


  • The creator of this contest is solely responsible for setting and communicating the eligibility requirements associated with prizes awarded to participants, as well as for procurement and distribution of all prizes. The contest creator holds HackerRank harmless from and against any and all claims, losses, damages, costs, awards, settlements, orders, or fines.
  • Code directly from our platform, which supports over 30 languages. Learn more here.


  • A participant’s score depends on the number of test cases a participant’s code submission successfully passes. All testcases have to pass to get a score.
  • If a participant submits more than one solution per challenge, then the participant’s score will reflect the highest score achieved. In a game challenge, the participant's score will reflect the last code submission.
  • Participants are ranked by score. If two or more participants achieve the same score, then the tie is broken by the total time taken to submit the last solution resulting in a higher score

Sign up for shortest_code_challenge now.

Not a genuine coding contest?