ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1110. Power

WHATS MEAN mod M ???
Posted by yaho0o0 1 May 2009 14:53
Re: WHATS MEAN mod M ???
Posted by Fyodor Menshikov 2 May 2009 16:32
Like % operator in C++ for non-negative arguments.

3 mod 3 == 0
4 mod 3 == 1
5 mod 3 == 2
6 mod 3 == 0