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

Unclear doubt in codeforces round 816 div 2 problem B

Правка en1, от aryamansinghk, 2022-08-20 20:59:02

Problem link https://codeforces.me/contest/1715/problem/B I solved the same problem using same logic. Once I directly tried to print the answers https://codeforces.me/contest/1715/submission/169136862 but got wrong answer on pretest 2. While on other approach I stored them in an array and did the same https://codeforces.me/contest/1715/submission/169162093 and got the solution accepted. Why this happened?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский aryamansinghk 2022-08-21 06:50:49 114
en2 Английский aryamansinghk 2022-08-20 20:59:37 4
en1 Английский aryamansinghk 2022-08-20 20:59:02 466 Initial revision (published)