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

Автор KIMJONGOOF, история, 5 недель назад, По-английски

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

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

WA submission -> https://mirror.codeforces.com/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
  • Проголосовать: не нравится

Автор KIMJONGOOF, история, 6 недель назад, По-английски

Problem Link -> https://mirror.codeforces.com/contest/776/problem/D

My submission -> https://mirror.codeforces.com/contest/776/submission/285238557

Its pretty obvious from my code what i am trying to do. My Question is that is the logic correct? Where am I going wrong?

I just take cases of whether the door is locked or not and accordingly I build the adj list for the corresponding switch combinations.

*Edit -> Resolved now.

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

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