結果
問題 |
No.1031 いたずら好きなお姉ちゃん
|
ユーザー |
![]() |
提出日時 | 2020-12-15 19:41:05 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 5,888 KB |
実行使用メモリ | 32,384 KB |
最終ジャッジ日時 | 2024-09-20 02:03:13 |
合計ジャッジ時間 | 25,212 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 52 WA * 1 |
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 4. Possible precedence problem on bitwise ^ operator at Main.pl line 7. Unquoted string "a" may clash with future reserved word at Main.pl line 11. Unquoted string "b" may clash with future reserved word at Main.pl line 11. Main.pl syntax OK
ソースコード
<>; @a=glob<>; map{ $x=$a[$i++]<$_|0; $y=$x^1; $\+=push@$x,$i-1; pop@$y while@$y&&$a[$$y[-1]]<$_^$y; if(@$y){ $j=$$y[-1]; $a=-1;$b=@$x; ${$$x[$c]<$j?a:b}=$c=$a+$b>>1while$a+1<$b; $\-=$b; } }@a[1..$#a]; print