Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created February 19, 2018 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/3fd1aeba93c20f958f36189d33b85f63 to your computer and use it in GitHub Desktop.
Save whatalnk/3fd1aeba93c20f958f36189d33b85f63 to your computer and use it in GitHub Desktop.
AtCoder ABC #080 A. Infinite Coins
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