Skip to content

Commit

Permalink
Solved!
Browse files Browse the repository at this point in the history
  • Loading branch information
fahadsadah committed Jan 28, 2010
1 parent 6feb3f6 commit e44d45e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 13.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/ruby
file = File.new("13.dat", "r")
total = 0
(0..99).each do
|x|
total = total + file.gets.to_i
end
print total.to_s[0..9] + "\n"

0 comments on commit e44d45e

Please sign in to comment.