結果
| 問題 | No.380 悪の台本 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-12 17:24:52 |
| 言語 | Perl (5.42.1) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 1,000 ms |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 723 ms |
| コンパイル使用メモリ | 8,356 KB |
| 実行使用メモリ | 20,352 KB |
| 最終ジャッジ日時 | 2026-05-22 12:20:13 |
| 合計ジャッジ時間 | 1,813 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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,$/
}