Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

beginner implementation tips

Правка en2, от anjali-22, 2026-01-10 15:37:03

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.

Теги #tipsandtricks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский anjali-22 2026-01-10 15:37:03 6
en1 Английский anjali-22 2026-01-10 15:35:53 1134 Initial revision (published)