Subtract Mod M

Computer Mathematics Easy 2 views
Back to Questions

Problem Description

Compute (a-b) mod m (non-negative).

Input Format

Three integers a b m.

Output Format

One integer.

Sample Test Case

Input:
3 5 7
Output:
5

Constraints

m>0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next