Created
February 19, 2018 01:14
-
-
Save whatalnk/3fd1aeba93c20f958f36189d33b85f63 to your computer and use it in GitHub Desktop.
AtCoder ABC #080 A. Infinite Coins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = gets.chomp.to_i | |
a = gets.chomp.to_i | |
b = n % 500 | |
if b <= a then | |
puts "Yes" | |
else | |
puts "No" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment