Please read the new rule regarding the restriction on the use of AI tools. ×

KIMJONGOOF's blog

By KIMJONGOOF, history, 2 hours 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.

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
114 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

very very hard