結果
問題 | No.151 セグメントフィッシング |
ユーザー | tails |
提出日時 | 2015-02-14 17:48:12 |
言語 | Perl (5.38.2) |
結果 |
TLE
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 5,216 KB |
実行使用メモリ | 6,724 KB |
最終ジャッジ日時 | 2023-09-06 01:03:28 |
合計ジャッジ時間 | 18,207 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
4,680 KB |
testcase_01 | AC | 2 ms
4,632 KB |
testcase_02 | AC | 3 ms
4,536 KB |
testcase_03 | AC | 3 ms
4,708 KB |
testcase_04 | AC | 3 ms
4,548 KB |
testcase_05 | AC | 3 ms
4,776 KB |
testcase_06 | AC | 4 ms
4,824 KB |
testcase_07 | AC | 4 ms
4,600 KB |
testcase_08 | AC | 2,736 ms
6,720 KB |
testcase_09 | AC | 2,888 ms
6,596 KB |
testcase_10 | AC | 2,804 ms
6,724 KB |
testcase_11 | AC | 2,745 ms
6,668 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
ソースコード
$n=<>; map{ unshift@a,[/R/-/L/,($a,$b)=/\d+/g]; $c=$t=/C/&&!print$c,$/,!map{ my($d,$x,$y)=@$_; (($x+=$d*$t++)%=($n*2))>=$n?$x=$n*2-1-$x:0; $c+=($x>=$a&$x<$b&$d)*$y }@a }<>