Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Can't Resolve the runtime error during contest especially in 2.B

Правка en1, от algoacer, 2023-10-08 16:36:19

I have been stuck in this situation for sometime. Actually I get the logic for solving 2.B in sufficient time but am stuck in one or two pretest. Like for the submission, I am not able to resolve the issue (pretest 5). Please suggest some good practices and how to build logic taking care of corner cases, or writing efficient code.

My submission is: https://codeforces.me/contest/1877/submission/227200089

Please help me taking example for this problem.

Теги stuck in a problem, edgecases, efficient solution

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский algoacer 2023-10-08 16:36:19 525 Initial revision (published)