結果
| 問題 |
No.459 C-VS for yukicoder
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2016-12-10 02:10:39 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 320 ms / 2,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 21,320 KB |
| 最終ジャッジ日時 | 2024-11-28 21:16:15 |
| 合計ジャッジ時間 | 5,339 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 58 |
コンパイルメッセージ
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
ソースコード
($h,$w,$n)=glob<>;
<>=~s/#/++$a["@-"]/ger for 1..$h;
for$t(0..$n-1){
$b[$t]=sprintf"%6d $t",$b=<>;
$e[$b+$_]+=3 for 0..2;
}
for(sort@b){
($b,$t)=/\w+/g;
$a[$b+$_]-=$r[$t][$_]=$-=$a[$b+$_]-($e[$b+$_]-=3)for 0..2;
!grep$r[$t][$_],0..2and$a[$b+$_]and--$a[$b+$_],$r[$t][$_]=1 for 0..2;
}
for$t(0..$n-1){
for$y(0..2){
print map($r[$t][$_]>$y?'#':'.',0..2),$/
}
}
tails