Created
October 15, 2018 12:33
-
-
Save whatalnk/55a0be37b0217e1f0aab1d607110f5c6 to your computer and use it in GitHub Desktop.
Code festival 2018 qual B; A
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 | |
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