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
# encoding: sjis | |
# | |
# とある世界のタクシー料金を計算する | |
# Author:: lithtle | |
# Created_At:: 2015-04-21 | |
# Link:: http://nabetani.sakura.ne.jp/hena/ord30taxi/ | |
# 都市の地点と経路 | |
CITY = { |
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
# encoding: sjis | |
# 1 | |
# using for | |
def sum_for(list) | |
sum = 0 | |
for i in list | |
sum += i | |
end | |
sum |
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
# deepcopyに必要なやつ | |
require 'active_support' | |
require 'active_support/core_ext' | |
# 目標ろんめんぺい金額 | |
START = 808888 | |
GOAL = 888888 | |
# 各種CEで取得可能な金額とラベル | |
PATTERN = { |
OlderNewer