結果

問題 No.905 Sorted?
ユーザー tailstails
提出日時 2019-10-11 23:52:31
言語 Perl
(5.38.2)
結果
AC  
実行時間 797 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 39,428 KB
最終ジャッジ日時 2023-08-16 21:10:06
合計ジャッジ時間 9,682 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,152 KB
testcase_01 AC 6 ms
5,240 KB
testcase_02 AC 6 ms
5,360 KB
testcase_03 AC 6 ms
5,180 KB
testcase_04 AC 6 ms
5,236 KB
testcase_05 AC 17 ms
6,180 KB
testcase_06 AC 12 ms
5,780 KB
testcase_07 AC 37 ms
8,252 KB
testcase_08 AC 642 ms
26,320 KB
testcase_09 AC 425 ms
21,416 KB
testcase_10 AC 724 ms
37,120 KB
testcase_11 AC 656 ms
32,132 KB
testcase_12 AC 702 ms
32,236 KB
testcase_13 AC 797 ms
39,428 KB
testcase_14 AC 705 ms
39,316 KB
testcase_15 AC 634 ms
39,212 KB
testcase_16 AC 674 ms
33,124 KB
testcase_17 AC 709 ms
36,160 KB
testcase_18 AC 613 ms
36,676 KB
testcase_19 AC 6 ms
5,088 KB
testcase_20 AC 6 ms
5,288 KB
testcase_21 AC 6 ms
5,388 KB
testcase_22 AC 6 ms
5,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise ^ operator at Main.pl line 11.
Possible precedence problem on bitwise ^ operator at Main.pl line 11.
Main.pl syntax OK

ソースコード

diff #

<>;
for(glob<>){
	$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,$/;
}
0