Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=gets.to_i
- c=0
- while gets
- c+=1 if ["-<",">-"].any?{|s|$_.include?s}
- end
- puts (100*c/n).to_s+"%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement