Please tell me why this code is not working for this problem?
https://codeforces.com/problemset/problem/499/A
Please tell me why this code is not working for this problem?
@cbcao263 please explain your approach a bit.
The editorial approach is this
One can solve the problem using greedy algorithm: if we can skip x minutes at current moment without skipping any good moment — we do that, otherwise — watch another minute of the film.
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.