結果

問題 No.1292 パタパタ三角形
ユーザー tailstails
提出日時 2020-11-20 23:16:35
言語 Perl
(5.38.2)
結果
AC  
実行時間 551 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 48,044 KB
最終ジャッジ日時 2023-09-30 20:02:19
合計ジャッジ時間 5,820 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,544 KB
testcase_01 AC 3 ms
4,680 KB
testcase_02 AC 2 ms
4,836 KB
testcase_03 AC 3 ms
4,664 KB
testcase_04 AC 3 ms
4,736 KB
testcase_05 AC 3 ms
4,552 KB
testcase_06 AC 3 ms
4,788 KB
testcase_07 AC 465 ms
27,452 KB
testcase_08 AC 455 ms
27,060 KB
testcase_09 AC 551 ms
46,868 KB
testcase_10 AC 546 ms
46,932 KB
testcase_11 AC 549 ms
46,776 KB
testcase_12 AC 496 ms
48,044 KB
testcase_13 AC 500 ms
48,020 KB
testcase_14 AC 528 ms
21,820 KB
testcase_15 AC 202 ms
21,932 KB
testcase_16 AC 526 ms
21,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of addition (+) in void context at Main.pl line 1.
Name "main::x" used only once: possible typo at Main.pl line 1.
Name "main::y" used only once: possible typo at Main.pl line 1.
Name "main::h" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

@2=map!$_,@1=-1..1;$\+=!$h{$y+=$2[$i=ord()%3]*=-1,$x+=$e=$1[$i]}++,$e&&map(@$_[$i-1,$i-2]=@$_[$i-2,$i-1],1,2)+map$_=-$_,@1,@2for 0,<>=~/./g;print
0