Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Code festival 2018 qual B; A
n = gets.chomp.to_i
ans = 0
1.upto(100) do |i|
if i % n == 0
ans += 1
puts 100 - ans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.