結果

問題 No.459 C-VS for yukicoder
ユーザー tailstails
提出日時 2016-12-10 02:46:49
言語 Perl
(5.38.2)
結果
AC  
実行時間 274 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 7,036 KB
実行使用メモリ 20,540 KB
最終ジャッジ日時 2023-08-19 06:54:27
合計ジャッジ時間 5,708 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,364 KB
testcase_01 AC 6 ms
5,176 KB
testcase_02 AC 6 ms
5,184 KB
testcase_03 AC 6 ms
5,184 KB
testcase_04 AC 6 ms
5,096 KB
testcase_05 AC 6 ms
5,320 KB
testcase_06 AC 6 ms
5,384 KB
testcase_07 AC 6 ms
5,228 KB
testcase_08 AC 6 ms
5,284 KB
testcase_09 AC 6 ms
5,184 KB
testcase_10 AC 6 ms
5,276 KB
testcase_11 AC 6 ms
5,100 KB
testcase_12 AC 6 ms
5,232 KB
testcase_13 AC 6 ms
5,220 KB
testcase_14 AC 6 ms
5,284 KB
testcase_15 AC 12 ms
5,500 KB
testcase_16 AC 10 ms
5,384 KB
testcase_17 AC 7 ms
5,316 KB
testcase_18 AC 7 ms
5,312 KB
testcase_19 AC 7 ms
5,216 KB
testcase_20 AC 7 ms
5,252 KB
testcase_21 AC 274 ms
20,540 KB
testcase_22 AC 242 ms
18,416 KB
testcase_23 AC 260 ms
18,332 KB
testcase_24 AC 95 ms
12,016 KB
testcase_25 AC 55 ms
9,344 KB
testcase_26 AC 56 ms
6,836 KB
testcase_27 AC 51 ms
6,740 KB
testcase_28 AC 42 ms
9,452 KB
testcase_29 AC 90 ms
9,720 KB
testcase_30 AC 42 ms
6,716 KB
testcase_31 AC 54 ms
8,104 KB
testcase_32 AC 7 ms
5,348 KB
testcase_33 AC 59 ms
9,244 KB
testcase_34 AC 77 ms
9,444 KB
testcase_35 AC 9 ms
5,700 KB
testcase_36 AC 74 ms
8,640 KB
testcase_37 AC 9 ms
5,456 KB
testcase_38 AC 61 ms
9,112 KB
testcase_39 AC 12 ms
5,532 KB
testcase_40 AC 51 ms
7,660 KB
testcase_41 AC 6 ms
5,364 KB
testcase_42 AC 49 ms
7,416 KB
testcase_43 AC 71 ms
8,648 KB
testcase_44 AC 16 ms
6,016 KB
testcase_45 AC 15 ms
5,836 KB
testcase_46 AC 15 ms
5,692 KB
testcase_47 AC 11 ms
5,484 KB
testcase_48 AC 72 ms
8,784 KB
testcase_49 AC 8 ms
5,424 KB
testcase_50 AC 58 ms
8,884 KB
testcase_51 AC 7 ms
5,448 KB
testcase_52 AC 31 ms
6,744 KB
testcase_53 AC 13 ms
5,788 KB
testcase_54 AC 63 ms
9,352 KB
testcase_55 AC 30 ms
6,080 KB
testcase_56 AC 51 ms
7,648 KB
testcase_57 AC 7 ms
5,356 KB
testcase_58 AC 77 ms
9,164 KB
testcase_59 AC 16 ms
6,240 KB
testcase_60 AC 30 ms
6,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 2.
Name "main::w" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($h,$w,$n)=glob<>;
<>=~s/#/++$a["@-"]/ger for 1..$h;
for$t(0..$n-1){
	$b[$t]=sprintf"%6d $t",$b=<>;
	$e[$b+$_]+=3for 0..2;
}
for(sort@b){
	($b,$t,$s)=split;
	$a[$b+$_]-=$r[$t][$_]=$-=$a[$b+$_]-($e[$b+$_]-=3),$s|=$-for 0..2;
	$s|!$a[$b+$_]or$a[$b+$_]-=$s=++$r[$t][$_]for 0..2;
}
for$r(@r){
	print map($$r[$_]-->0?'#':'.',0..2),$/for 0..2;
}
0