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

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

This is the question. https://codeforces.me/contest/1974/problem/E

AC submission -> https://codeforces.me/contest/1974/submission/287177874

WA submission -> https://codeforces.me/contest/1974/submission/287176403

In both my submissions, i have the exact same approach, only diff being in 1 case i use the current dp state to update the next dp states(in the WA submission) and in the AC submission i use previous dp states to update current dp states.

Where am i going wrong?

*Edit -> Resolved

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

»
23 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I hope this little fix helped.