結果
問題 | No.1292 パタパタ三角形 |
ユーザー |
![]() |
提出日時 | 2020-11-20 23:16:35 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 545 ms / 2,000 ms |
コード長 | 145 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 52,992 KB |
最終ジャッジ日時 | 2024-07-23 13:50:51 |
合計ジャッジ時間 | 5,635 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
コンパイルメッセージ
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
ソースコード
@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