Last active
May 4, 2016 09:20
-
-
Save KamMif/1be6608fffd8c4f7fb0303be20896516 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
read = IO.read(ARGV.first) | |
puts 'hello' if a == nil | |
read.chomp | |
one_str = read.split("\n") | |
name = "Time" | |
one_str.each {|x| a = x.split("|") | |
if a[1].include?(name) | |
d = a[7].to_i | |
e = a[7].to_f - d | |
puts a[1] | |
y = e.round(1) * 10 | |
rating = "*" | |
puts rating * y | |
end} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment