結果

問題 No.151 セグメントフィッシング
ユーザー tailstails
提出日時 2015-02-14 17:46:16
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 180 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,752 KB
最終ジャッジ日時 2023-09-06 01:03:03
合計ジャッジ時間 18,164 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,688 KB
testcase_01 AC 3 ms
4,828 KB
testcase_02 AC 3 ms
4,532 KB
testcase_03 AC 3 ms
4,748 KB
testcase_04 AC 3 ms
4,632 KB
testcase_05 AC 3 ms
4,768 KB
testcase_06 AC 4 ms
4,564 KB
testcase_07 AC 4 ms
4,580 KB
testcase_08 AC 2,716 ms
6,748 KB
testcase_09 AC 2,828 ms
6,740 KB
testcase_10 AC 2,736 ms
6,804 KB
testcase_11 AC 2,715 ms
6,720 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise & operator at Main.pl line 7.
Main.pl syntax OK

ソースコード

diff #

$n=<>;
map{
	unshift@a,[/R/-/L/,($a,$b)=/\d+/g];
	$c=$t=/C/&&!print$c,$/,!map{
		($d,$x,$y)=@$_;
		(($x+=$d*$t++)%=($n*2))>=$n?$x=$n*2-1-$x:0;
		$c+=($x>=$a&$x<$b&$d)*$y
	}@a;
}<>
0