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

Блог пользователя aryamansinghk

Автор aryamansinghk, история, 2 года назад, По-английски

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?

Doubt solved : thanks to others for giving intuition. https://codeforces.me/blog/entry/106214?#comment-945874

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

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