結果

問題 No.60 魔法少女
ユーザー tailstails
提出日時 2017-02-23 10:17:29
言語 Perl
(5.38.0)
結果
AC  
実行時間 2,572 ms / 5,000 ms
コード長 212 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 232,396 KB
最終ジャッジ日時 2023-08-30 21:19:24
合計ジャッジ時間 29,785 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,525 ms
185,084 KB
testcase_01 AC 1,536 ms
185,064 KB
testcase_02 AC 1,524 ms
185,172 KB
testcase_03 AC 1,517 ms
185,280 KB
testcase_04 AC 2,263 ms
216,612 KB
testcase_05 AC 1,913 ms
204,600 KB
testcase_06 AC 2,563 ms
231,408 KB
testcase_07 AC 2,322 ms
223,464 KB
testcase_08 AC 1,856 ms
199,600 KB
testcase_09 AC 1,703 ms
191,072 KB
testcase_10 AC 2,480 ms
229,868 KB
testcase_11 AC 1,569 ms
188,604 KB
testcase_12 AC 1,770 ms
198,584 KB
testcase_13 AC 2,572 ms
232,396 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$e[@e]=<>for 1..<>;map{for$b($_!~('(\S+) 'x4),$4+1){$m{$1+$_,$2+$b}+=!$_^!$b?-$':$' for$3+1,0}}<>;for$y(@i=-500..500){$s=0;$$_{$y}+=$$_{$y-1}+($s=$m{$_,$y}+=$s)for@i;}($x,$y,$h)=split,$\+=$-=$h-$$x{$y}for@e;print
0