結果

問題 No.459 C-VS for yukicoder
ユーザー tailstails
提出日時 2016-12-10 13:29:46
言語 Perl
(5.38.0)
結果
AC  
実行時間 640 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 23,704 KB
最終ジャッジ日時 2023-08-25 03:03:21
合計ジャッジ時間 9,281 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,656 KB
testcase_01 AC 3 ms
4,696 KB
testcase_02 AC 3 ms
4,648 KB
testcase_03 AC 2 ms
4,724 KB
testcase_04 AC 3 ms
4,724 KB
testcase_05 AC 2 ms
4,800 KB
testcase_06 AC 2 ms
4,672 KB
testcase_07 AC 2 ms
4,512 KB
testcase_08 AC 3 ms
4,660 KB
testcase_09 AC 3 ms
4,700 KB
testcase_10 AC 2 ms
4,780 KB
testcase_11 AC 2 ms
4,612 KB
testcase_12 AC 3 ms
4,692 KB
testcase_13 AC 2 ms
4,700 KB
testcase_14 AC 3 ms
4,744 KB
testcase_15 AC 12 ms
5,032 KB
testcase_16 AC 9 ms
4,788 KB
testcase_17 AC 4 ms
4,724 KB
testcase_18 AC 4 ms
4,764 KB
testcase_19 AC 4 ms
4,652 KB
testcase_20 AC 4 ms
4,552 KB
testcase_21 AC 640 ms
23,704 KB
testcase_22 AC 541 ms
22,060 KB
testcase_23 AC 600 ms
21,928 KB
testcase_24 AC 179 ms
12,140 KB
testcase_25 AC 71 ms
8,720 KB
testcase_26 AC 68 ms
6,492 KB
testcase_27 AC 66 ms
6,672 KB
testcase_28 AC 64 ms
8,732 KB
testcase_29 AC 151 ms
10,752 KB
testcase_30 AC 55 ms
6,684 KB
testcase_31 AC 86 ms
7,908 KB
testcase_32 AC 3 ms
4,620 KB
testcase_33 AC 98 ms
8,824 KB
testcase_34 AC 127 ms
9,512 KB
testcase_35 AC 7 ms
4,884 KB
testcase_36 AC 127 ms
9,108 KB
testcase_37 AC 6 ms
4,936 KB
testcase_38 AC 101 ms
8,936 KB
testcase_39 AC 10 ms
5,016 KB
testcase_40 AC 80 ms
7,632 KB
testcase_41 AC 3 ms
4,856 KB
testcase_42 AC 75 ms
7,488 KB
testcase_43 AC 114 ms
8,888 KB
testcase_44 AC 19 ms
5,440 KB
testcase_45 AC 16 ms
5,228 KB
testcase_46 AC 15 ms
5,348 KB
testcase_47 AC 9 ms
4,936 KB
testcase_48 AC 117 ms
8,808 KB
testcase_49 AC 4 ms
4,860 KB
testcase_50 AC 94 ms
8,536 KB
testcase_51 AC 5 ms
4,776 KB
testcase_52 AC 47 ms
6,452 KB
testcase_53 AC 12 ms
5,096 KB
testcase_54 AC 104 ms
8,848 KB
testcase_55 AC 37 ms
5,900 KB
testcase_56 AC 79 ms
7,420 KB
testcase_57 AC 4 ms
4,888 KB
testcase_58 AC 127 ms
9,532 KB
testcase_59 AC 20 ms
5,508 KB
testcase_60 AC 46 ms
6,508 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

<>=~s/#/++$a["@-"]/ger for 1..<>;
$t{$b[@b]="$_ $#b"}=@b for<>;
for$b((sort{$a-$b}@b)x9){
	$r[$t{$b}][$_]<3&&$a[$b+$_]and++$r[$t{$b}][$_],--$a[$b+$_],last for 0..2;
}
for$r(@r){
	print map($$r[$_]-->0?'#':'.',0..2),$/for 0..2;
}
0