Created
February 25, 2019 04:00
-
-
Save whatalnk/21282ccd5732c74ca926e8489f021258 to your computer and use it in GitHub Desktop.
AtCoder ABC #119 B. Digital Gifts
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 | |
n.times do | |
x, u = gets.chomp.split(" ") | |
if u == 'JPY' | |
ans += x.to_f | |
else | |
ans += x.to_f * 380000 | |
end | |
end | |
puts ans |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment