Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created October 15, 2018 12:33
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/55a0be37b0217e1f0aab1d607110f5c6 to your computer and use it in GitHub Desktop.
Save whatalnk/55a0be37b0217e1f0aab1d607110f5c6 to your computer and use it in GitHub Desktop.
Code festival 2018 qual B; A
n = gets.chomp.to_i
ans = 0
1.upto(100) do |i|
if i % n == 0
ans += 1
end
end
puts 100 - ans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment