Hey Guys,↵
↵
I am trying to solve this problem [contest:260][problem:A](https://codeforces.net/contest/455/problem/A) tagged DP. I am getting runtime error for my submission in case of larger inputs[submission:51083532] (https://codeforces.net/contest/455/submission/51083532). Can anyone please explain what I am doing wrong, I am a beginner. Any help will be appreciated.
↵
I am trying to solve this problem [contest:260][problem:A](https://codeforces.net/contest/455/problem/A) tagged DP. I am getting runtime error for my submission in case of larger inputs[submission:51083532