結果
問題 | No.905 Sorted? |
ユーザー |
![]() |
提出日時 | 2019-10-11 22:28:09 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 693 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 334 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 33,824 KB |
最終ジャッジ日時 | 2024-11-25 08:18:51 |
合計ジャッジ時間 | 8,393 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
Possible precedence problem on bitwise ^ operator at Main.pl line 13. Possible precedence problem on bitwise ^ operator at Main.pl line 13. Main.pl syntax OK
ソースコード
<>; for(glob<>){ if($i){ $u[$i]=$_<$p?$i:$u[$i-1]; $d[$i]=$_>$p?$i:$d[$i-1]; } $p=$_; ++$i; } <>; for(<>){ ($l,$r)=glob; print $u[$r]>$l^1,$",$d[$r]>$l^1,$/; }