Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
法人向けクラウドチャットツール「KDDI ChatWork」の新料金プラン
#!/usr/bin/env ruby
# http://news.kddi.com/kddi/business-topic/2016/03/1636.html
accounts = [1, 3, 5, 10, 15, 20, 50, 100, 200]
3.upto 20 do |i|
accounts << i * 100
end
accounts.each do |i|
price = 4_743
1.upto i do |j|
price += 191
end
puts "#{sprintf '%5d: %d',i, price}"
end
puts
accounts.each do |i|
price = 0
1.upto i do |j|
price += 800
end
puts "#{sprintf '%5d: %d',i, price}"
end
@takano32

This comment has been minimized.

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.