Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

anjali-22's blog

By anjali-22, history, 10 months ago, In English

I am a beginner on Codeforces, and at the beginning I was confused when my submissions got partial points instead of Accepted. After solving more problems and learning from my mistakes, I understood the common reasons. I am sharing them here to help other beginners.

Reasons for Partial Points

  1. Edge cases not handled: Many solutions work for sample test cases but fail for corner cases like very small or very large inputs.

  2. Time Limit Exceeded (TLE): Inefficient logic may pass small test cases but fail when the input size is large.

  3. Wrong data type: Using int instead of long long can cause overflow and wrong answers.

  4. Ignoring constraints: Some problems require modulo operations or handling multiple test cases. Missing these leads to partial points.

  5. Input and output mistakes: Forgetting to reset variables or printing output in the wrong format can cause wrong answers.

Conclusion:

Partial points mean the solution is partially correct. By reading constraints carefully, handling edge cases, and optimizing the code, partial points can be converted into Accepted.

  • Vote: I like it
  • -15
  • Vote: I do not like it