Mod Normalize
Computer Mathematics
Easy
2 views
Problem Description
Given a and m>0, output normalized a mod m in [0,m-1].
Input Format
Two integers a m.
Output Format
One integer.
Official Solution
Compute r=a%m. If r<0 add m.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!