結果

問題 No.1398 調和の魔法陣 (構築)
ユーザー tailstails
提出日時 2021-02-22 10:29:00
言語 Perl
(5.38.2)
結果
AC  
実行時間 149 ms / 3,153 ms
コード長 131 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 6,112 KB
実行使用メモリ 7,008 KB
最終ジャッジ日時 2023-10-21 06:53:23
合計ジャッジ時間 32,090 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
6,188 KB
testcase_01 AC 8 ms
6,184 KB
testcase_02 AC 8 ms
6,184 KB
testcase_03 AC 7 ms
6,196 KB
testcase_04 AC 8 ms
6,188 KB
testcase_05 AC 7 ms
6,184 KB
testcase_06 AC 146 ms
7,004 KB
testcase_07 AC 148 ms
7,004 KB
testcase_08 AC 146 ms
7,008 KB
testcase_09 AC 146 ms
7,008 KB
testcase_10 AC 145 ms
7,004 KB
testcase_11 AC 147 ms
7,008 KB
testcase_12 AC 145 ms
7,008 KB
testcase_13 AC 146 ms
7,008 KB
testcase_14 AC 145 ms
7,008 KB
testcase_15 AC 145 ms
7,008 KB
testcase_16 AC 145 ms
7,008 KB
testcase_17 AC 149 ms
7,008 KB
testcase_18 AC 146 ms
7,004 KB
testcase_19 AC 148 ms
7,008 KB
testcase_20 AC 145 ms
7,008 KB
testcase_21 AC 147 ms
7,004 KB
testcase_22 AC 146 ms
7,008 KB
testcase_23 AC 146 ms
7,008 KB
testcase_24 AC 147 ms
7,004 KB
testcase_25 AC 147 ms
7,004 KB
testcase_26 AC 147 ms
7,008 KB
testcase_27 AC 148 ms
7,004 KB
testcase_28 AC 146 ms
7,008 KB
testcase_29 AC 147 ms
7,008 KB
testcase_30 AC 147 ms
7,008 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($w,$h,$z)=glob<>;map{$r.=${$'%3}{$_%3}//=$z+0-($z-=$'*($h-$'+1)*$_*($w-$_+1)%3?$z<9?$z:9:0)for//..$w;$r.=$/}1..$h;print$z?'-1
':$r
0