Zombie Apocalypse
Practice
5 (1 votes)
Easy
Problem
19% Success 370 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Pandit and Pushkar are trapped on an island during a zombie apocalypse.
In order to survive, they must fight their way out of it. Pandit can inflict a damage of x units, while Pushkar can inflict a damage of y units. In order to kill the zombie, it should recieve exactly z units of damage.
Find if they can survive or not.
Input format :
The only line of input containts 3 non-negative integers x,y & z.
Output format :
If they can survive print "Yes"(Without quotes), else print "No".
Constraints :
\(1 \leq x,y \leq 100\)
\(1 \leq z \leq 10000 \)
Submissions
Please login to view your submissions
Similar Problems
Points:20
14 votes
Tags:
Basic ProgrammingMathematicsOpenApprovedEasyMathamatics
Points:20
5 votes
Tags:
MathBasic MathObservationC++
Points:20
1 votes
Tags:
MathematicsApprovedEasyNumber TheoryMathematicsMathamatics
Editorial