Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

why +/i instead on %

Revision en1, by 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 ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English vintage_Petr_Mitrichev 2019-01-01 13:51:36 166 Initial revision (published)