Last active
March 2, 2016 09:26
-
-
Save takano32/faf5e388dafe64a92dea to your computer and use it in GitHub Desktop.
法人向けクラウドチャットツール「KDDI ChatWork」の新料金プラン
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
#!/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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
旧料金
https://gist.github.com/takano32/e0d11e36e7583d4dabb8
新料金
https://gist.github.com/takano32/ffcd90402e5212b3f39d