結果
| 問題 | No.204 ゴールデン・ウィーク(2) |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2015-05-08 22:48:33 |
| 言語 | Perl (5.42.1) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 8,224 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 07:45:03 |
| 合計ジャッジ時間 | 2,376 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 |
コンパイルメッセージ
Unquoted string "x" may clash with future reserved word at Main.pl line 1. Unquoted string "x" may clash with future reserved word at Main.pl line 1. Unquoted string "o" may clash with future reserved word at Main.pl line 3. Main.pl syntax OK
ソースコード
$n=<>+0;$a=x x 14 .<>.<>.x x 14;$r=0;
for$j(0..28){
$_=$a;s/\n//g;pos=$j;s/\Gx{0,$n}/o x length$&/e;
$x=0;
/o/?$r+=$-=++$x-$r:($x=0)for/./g;
}
print$r
tails