Loading...
Division True/ False
Time: 1 s
Memory: 125 MB
\(\frac{a + b}{c} = d\)
Give you a, b, c, d. Write "YES" if it true, "NO" if it false.
Input
Four numbers a, b, c, d. Each number seperated by a space.
Constraint
\(-10^{18} \leq a, b, c, d \leq 10^{18}; c \neq 0.\)
Output
"YES" for true. "NO" for false.
Examples
Input
Output
1 2 3 4
NO
Input
Output
4 3 2 3
YES
Input
Output
1 1 1 1
NO
Problem Info
Problem ID 420
Time Limit 1000 ms
Memory Limit 128000 KB
Moderators pixelarco
Statistics
Submit
You need to Login or Registration for submit your solution