結果

問題 No.86 TVザッピング(2)
ユーザー 👑 tails
提出日時 2019-08-24 22:43:37
言語 Perl
(5.44.0)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 267 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6 ms
コンパイル使用メモリ 9,744 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-10-30 02:00:20
合計ジャッジ時間 2,022 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise & operator at Main.pl line 1.
Name "main::z" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #
raw source code

<>;map{y/.\n/ /d,$c&1?$_ eq$p?++$e:$_ eq$p=~s/ #*/$&=~y,#, ,r/er||/ /<$p=~/  /&&$e?++$c:($_^=$p=~y/ #/AD/r,/^g*((ad*|d*a)g*)*$/)?($d+=s/a(d+)|(d+)a/$1a$2/g,y/adg/ #/,$p=$_):($c=9):s/^#* \K *(?= #*$)/$&=~y, ,#,r/e?($p=$_,++$c):($c+=/ /*9)}<>,$z;print$c==2&$d<2?YES:NO 
0