結果
| 問題 |
No.380 悪の台本
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-17 22:44:35 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 967 bytes |
| コンパイル時間 | 43 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,672 KB |
| 最終ジャッジ日時 | 2024-11-06 22:36:28 |
| 合計ジャッジ時間 | 1,842 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
while s = gets
s = s.chomp.split
case s[0]
when "digi"
s = s[1..-1].join.downcase
if s =~ /nyo[^a-zA-Z0-9]{,3}$/
puts "CORRECT (maybe)"
else
puts "WRONG!"
end
when "petit"
s = s[1..-1].join.downcase
if s =~ /nyu[^a-zA-Z0-9]{,3}$/
puts "CORRECT (maybe)"
else
puts "WRONG!"
end
when "rabi"
s = s[1..-1].join.downcase
if s =~ /[a-zA-Z0-9]+/
puts "CORRECT (maybe)"
else
puts "WRONG!"
end
when "gema"
s = s[1..-1].join.downcase
if s =~ /gema[^a-zA-Z0-9]{,3}$/
puts "CORRECT (maybe)"
else
puts "WRONG!"
end
when "piyo"
s = s[1..-1].join.downcase
if s =~ /pyo[^a-zA-Z0-9]{,3}$/
puts "CORRECT (maybe)"
else
puts "WRONG!"
end
else
puts "WRONG!"
end
end