saptarshikuar2003's blog

By saptarshikuar2003, history, 17 months ago, In English

problem link:- https://codeforces.me/contest/2116/problem/B

submission link :- https://codeforces.me/contest/2116/submission/323376355

please help me understand what is wrong with this solution......

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

| Write comment?
»
17 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

You are taking the modulus then taking the maximum , this is wrong since the max_value may become lesser after taking the modulus

for example : — 13%3 < 11%3 but 13>11