KIMJONGOOF's blog

By KIMJONGOOF, history, 4 weeks ago, In English

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

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it

By KIMJONGOOF, history, 6 weeks ago, In English

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.

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it