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

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

The Question is -> https://codeforces.me/contest/2013/problem/D

My approach is as follows :

My Approach

If someone could help me out it would be greatly appreciated.

My submission for ref -> https://codeforces.me/contest/2013/submission/297131396

Thanks!!

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

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

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

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
  • Проголосовать: не нравится

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

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

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