why +/i instead on %

Правка en1, от vintage_Petr_Mitrichev, 2019-01-01 13:51:36

suppose u have to find a % b , i see many red coders solution instead of using directly a%b they do like ..

if (a >=mod) a-=mod ??

why so ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский vintage_Petr_Mitrichev 2019-01-01 13:51:36 166 Initial revision (published)