結果

問題 No.1398 調和の魔法陣 (構築)
ユーザー %20%20
提出日時 2021-02-20 03:15:53
言語 Perl
(5.38.2)
結果
AC  
実行時間 238 ms / 3,153 ms
コード長 145 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 6,056 KB
実行使用メモリ 40,476 KB
最終ジャッジ日時 2023-10-17 07:37:03
合計ジャッジ時間 33,603 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,092 KB
testcase_01 AC 8 ms
6,084 KB
testcase_02 AC 7 ms
6,088 KB
testcase_03 AC 7 ms
6,084 KB
testcase_04 AC 8 ms
6,084 KB
testcase_05 AC 8 ms
6,092 KB
testcase_06 AC 234 ms
40,228 KB
testcase_07 AC 7 ms
6,092 KB
testcase_08 AC 237 ms
37,780 KB
testcase_09 AC 235 ms
37,780 KB
testcase_10 AC 8 ms
6,084 KB
testcase_11 AC 235 ms
40,356 KB
testcase_12 AC 7 ms
6,092 KB
testcase_13 AC 234 ms
37,784 KB
testcase_14 AC 233 ms
37,788 KB
testcase_15 AC 8 ms
6,084 KB
testcase_16 AC 236 ms
32,804 KB
testcase_17 AC 237 ms
32,808 KB
testcase_18 AC 235 ms
32,808 KB
testcase_19 AC 235 ms
32,804 KB
testcase_20 AC 7 ms
6,084 KB
testcase_21 AC 235 ms
37,900 KB
testcase_22 AC 234 ms
37,900 KB
testcase_23 AC 7 ms
6,084 KB
testcase_24 AC 234 ms
40,352 KB
testcase_25 AC 8 ms
6,084 KB
testcase_26 AC 238 ms
37,900 KB
testcase_27 AC 238 ms
37,896 KB
testcase_28 AC 8 ms
6,084 KB
testcase_29 AC 236 ms
40,476 KB
testcase_30 AC 7 ms
6,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($W,$H,$X)=glob<>;map{$X-=${$'+!($H%3)}[$_+!($W%3)]=$X<9?$X:9for!//..$W%3/2}0..$H%3/2;print$X?-1 .$/:map{(map${$'%3}[$_%3]+0,0..$W-//),$/}0..$H-1
0