結果
問題 | No.380 悪の台本 |
ユーザー | fine |
提出日時 | 2016-06-18 00:43:36 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 257 ms / 1,000 ms |
コード長 | 956 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 19,584 KB |
最終ジャッジ日時 | 2024-04-24 14:28:20 |
合計ジャッジ時間 | 1,770 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 86 ms
12,032 KB |
testcase_01 | AC | 83 ms
12,288 KB |
testcase_02 | AC | 82 ms
12,032 KB |
testcase_03 | AC | 83 ms
12,032 KB |
testcase_04 | AC | 87 ms
12,416 KB |
testcase_05 | AC | 102 ms
12,288 KB |
testcase_06 | AC | 99 ms
12,416 KB |
testcase_07 | AC | 257 ms
12,544 KB |
testcase_08 | AC | 85 ms
19,584 KB |
testcase_09 | AC | 93 ms
12,288 KB |
コンパイルメッセージ
Syntax OK
ソースコード
while s = gets s = s.chomp if s =~ /^digi / s.downcase! if s =~ /^digi .*nyo[^a-zA-Z0-9]{0,3}$/ puts "CORRECT (maybe)" else puts "WRONG!" end elsif s =~ /^petit / s.downcase! if s =~ /^petit .*nyu[^a-zA-Z0-9]{0,3}$/ puts "CORRECT (maybe)" else puts "WRONG!" end elsif s =~ /^rabi / s.downcase! if s =~ /^rabi .*[a-zA-Z0-9].*$/ puts "CORRECT (maybe)" else puts "WRONG!" end elsif s =~ /^gema / s.downcase! if s =~ /^gema .*gema[^a-zA-Z0-9]{0,3}$/ puts "CORRECT (maybe)" else puts "WRONG!" end elsif s =~ /^piyo / s.downcase! if s =~ /^piyo .*pyo[^a-zA-Z0-9]{0,3}$/ puts "CORRECT (maybe)" else puts "WRONG!" end else puts "WRONG!" end end