結果

問題 No.204 ゴールデン・ウィーク(2)
ユーザー tails
提出日時 2015-05-08 22:45:48
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 11:37:31
合計ジャッジ時間 1,364 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 WA * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
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..13){
	$_=$a;s/\n//;pos=$j;s/\Gx{0,$n}/o x length$&/e;
	$x=0;
	/o/?$r+=$-=++$x-$r:($x=0)for/./g;
}
print$r
0