Check Congruent

Computer Mathematics Easy 2 views
Back to Questions

Problem Description

Print YES if a and b are congruent mod m.

Input Format

Three integers a b m.

Output Format

YES or NO.

Sample Test Case

Input:
14 2 12
Output:
YES

Constraints

m>0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next