Getting wrong answer

Hii…
I am doing this question from codeforces…
https://codeforces.com/problemset/problem/1395/C
I am trying to solve by looking at the submission of this guy.
It was D.P problem.
The solution of this guy is…
https://codeforces.com/problemset/submission/1395/97102510
I have tried to similar like him…
But i am getting wrong answer…
Please see this…

hello @ashishnnnnn wait i am checking both the codes.
i have got your doubt.

Hii… I have got where i was doing wrong…
I was using (“or”) as bitwise or operator… which is wrong…
I have posted a doubt just now…
If possible see that… i am trying to solve that question from past 1 hour…
Thanks :slight_smile:

@ashishnnnnn please mark this doubt as resolved then. yes i have got that doubt as well.
pleasw wait i will let you know.
Happy Learning !!

There is so error… I have marked the previous as resolved couple of time… But after refreshing again it is showing as unresolved…

you can do the same later.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.