結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー tails
提出日時 2015-05-08 22:46:27
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 5,504 KB
最終ジャッジ日時 2024-10-13 11:37:46
合計ジャッジ時間 1,502 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

$n=<>+0;$a=<>.<>.x x 14;$r=0;
for$j(0..14){
	$_=$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
0