Add Mod M

Computer Mathematics Easy 2 views
Back to Questions

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
Output:
7

Constraints

m>0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next