Skip to content

Instantly share code, notes, and snippets.

@saketkc
Created July 14, 2011 06:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saketkc/1082039 to your computer and use it in GitHub Desktop.
Save saketkc/1082039 to your computer and use it in GitHub Desktop.
CodeChef(SPOJ) Problem1 Ruby Solution
a=[]
while STDIN.readline.chomp!="42"
a.push($_)
end
a.each { |s| puts s }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment