Skip to content

Instantly share code, notes, and snippets.

@thata
Created February 6, 2009 08:52
Show Gist options
  • Save thata/59288 to your computer and use it in GitHub Desktop.
Save thata/59288 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require 'date'
s = Time.now
result = $stdin.readline.chomp
e = Time.now
if result =~ /いちごましまろ/
puts "いちごましまろ(#{ e - s}秒)"
else
puts "NG: #{ result }"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment