結果
問題 |
No.380 悪の台本
|
ユーザー |
|
提出日時 | 2019-10-12 17:24:52 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 105 ms / 1,000 ms |
コード長 | 424 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 20,480 KB |
最終ジャッジ日時 | 2024-11-28 11:20:01 |
合計ジャッジ時間 | 769 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
Unquoted string "digi" may clash with future reserved word at Main.pl line 7. Unquoted string "petit" may clash with future reserved word at Main.pl line 10. Unquoted string "rabi" may clash with future reserved word at Main.pl line 13. Unquoted string "gema" may clash with future reserved word at Main.pl line 16. Unquoted string "piyo" may clash with future reserved word at Main.pl line 19. Main.pl syntax OK
ソースコード
for(<>){ $ans="CORRECT (maybe)"; $out="WRONG!"; s/^\w+ //; $a=$&; $a=~s/ $//; if($a eq digi){ $ans=$out if!/nyo[^a-zA-Z0-9]{0,3}$/i } elsif($a eq petit){ $ans=$out if!/nyu[^a-zA-Z0-9]{0,3}$/i } elsif($a eq rabi){ $ans=$out if!/[a-zA-Z0-9]/ } elsif($a eq gema){ $ans=$out if!/gema[^a-zA-Z0-9]{0,3}$/i } elsif($a eq piyo){ $ans=$out if!/pyo[^a-zA-Z0-9]{0,3}$/i } else{ $ans=$out } print$ans,$/ }