結果

問題 No.905 Sorted?
ユーザー tailstails
提出日時 2019-10-11 22:28:09
言語 Perl
(5.38.2)
結果
AC  
実行時間 788 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 7,108 KB
実行使用メモリ 33,108 KB
最終ジャッジ日時 2023-08-16 18:40:01
合計ジャッジ時間 9,749 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,128 KB
testcase_01 AC 6 ms
5,360 KB
testcase_02 AC 7 ms
5,088 KB
testcase_03 AC 7 ms
5,364 KB
testcase_04 AC 6 ms
5,204 KB
testcase_05 AC 18 ms
6,180 KB
testcase_06 AC 13 ms
5,584 KB
testcase_07 AC 38 ms
7,768 KB
testcase_08 AC 669 ms
23,296 KB
testcase_09 AC 437 ms
18,536 KB
testcase_10 AC 722 ms
31,152 KB
testcase_11 AC 644 ms
27,300 KB
testcase_12 AC 722 ms
27,852 KB
testcase_13 AC 788 ms
33,100 KB
testcase_14 AC 701 ms
32,904 KB
testcase_15 AC 662 ms
32,892 KB
testcase_16 AC 703 ms
33,108 KB
testcase_17 AC 719 ms
33,008 KB
testcase_18 AC 613 ms
31,776 KB
testcase_19 AC 6 ms
5,228 KB
testcase_20 AC 6 ms
5,204 KB
testcase_21 AC 6 ms
5,216 KB
testcase_22 AC 6 ms
5,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

<>;
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,$/;
}
0