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

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

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......

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

»
17 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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