結果
問題 | No.380 悪の台本 |
ユーザー | 小指が強い人 |
提出日時 | 2016-06-18 01:35:50 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 584 bytes |
コンパイル時間 | 36 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 33,024 KB |
最終ジャッジ日時 | 2024-04-24 14:31:33 |
合計ジャッジ時間 | 1,795 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 86 ms
12,160 KB |
testcase_01 | WA | - |
testcase_02 | AC | 86 ms
12,160 KB |
testcase_03 | AC | 85 ms
12,160 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 81 ms
12,032 KB |
testcase_09 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
a=[] while (g=gets)!=nil do a.push(g.chop.partition(" ")) end c=["digi","petit","rabi","gema","piyo"] norm=[/[nN][yY][oO][^a-zA-Z0-9]?[^a-zA-Z0-9]?[^a-zA-Z0-9]?$/,/[nN][yY][uU][^a-zA-Z0-9]?[^a-zA-Z0-9]?[^a-zA-Z0-9]?$/,/[a-zA-Z0-9]+/,/[gG][eE][mM][aA][^a-zA-Z0-9]?[^a-zA-Z0-9]?[^a-zA-Z0-9]?$/,/[pO][yY][oO][^a-zA-Z0-9]?[^a-zA-Z0-9]?[^a-zA-Z0-9]?$/] a.length.times do |i| cr=a[i][0] st=a[i][2] j=0 while j<c.length&&cr!=c[j] do j+=1 end next if j>=c.length if st=~norm[j] puts "CORRECT (maybe)" else puts "WRONG!" end end