Add Mod M
Computer Mathematics
Easy
2 views
Problem Description
Compute (a+b) mod m for large a,b.
Input Format
Three integers a b m.
Output Format
One integer.
Sample Test Case
Input:
1000000000000 7 10
Official Solution
Normalize a and b then (a+b)%m.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!