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

Блог пользователя anjali-22

Автор anjali-22, история, 10 месяцев назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -15
  • Проголосовать: не нравится