結果

問題 No.408 五輪ピック
ユーザー %20%20
提出日時 2020-06-28 09:34:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 562 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 5,240 KB
実行使用メモリ 25,112 KB
最終ジャッジ日時 2023-09-21 09:46:25
合計ジャッジ時間 9,380 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,196 KB
testcase_01 AC 6 ms
5,384 KB
testcase_02 AC 6 ms
5,124 KB
testcase_03 AC 6 ms
5,228 KB
testcase_04 AC 6 ms
5,380 KB
testcase_05 AC 406 ms
17,308 KB
testcase_06 AC 219 ms
15,932 KB
testcase_07 AC 296 ms
17,148 KB
testcase_08 AC 253 ms
13,604 KB
testcase_09 AC 259 ms
14,388 KB
testcase_10 AC 198 ms
13,744 KB
testcase_11 AC 191 ms
13,140 KB
testcase_12 AC 343 ms
18,112 KB
testcase_13 AC 403 ms
16,960 KB
testcase_14 AC 69 ms
8,680 KB
testcase_15 AC 412 ms
17,564 KB
testcase_16 AC 412 ms
17,096 KB
testcase_17 AC 377 ms
17,616 KB
testcase_18 AC 393 ms
18,772 KB
testcase_19 AC 402 ms
19,852 KB
testcase_20 AC 105 ms
11,352 KB
testcase_21 AC 58 ms
8,524 KB
testcase_22 AC 177 ms
15,628 KB
testcase_23 AC 562 ms
25,112 KB
testcase_24 AC 332 ms
21,544 KB
testcase_25 AC 345 ms
17,192 KB
testcase_26 AC 419 ms
21,600 KB
testcase_27 AC 339 ms
17,204 KB
testcase_28 AC 249 ms
16,008 KB
testcase_29 AC 245 ms
16,148 KB
testcase_30 AC 7 ms
5,100 KB
testcase_31 AC 6 ms
5,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 8.
Main.pl syntax OK

ソースコード

diff #

$N=<>;
map{push@{-$_},-$_[--$|]for@_=glob}<>;
for$i(@{-1}){
	$$_=$$_?1:$i for@$i
}
${-1}=0;
for$i(-$N..-1){
	$z|=$$i&&$$_&&$$i-$_&&$$_-$i&&$$i>0|$$_>0|$$i-$$_ for@$i
}
print$z?YES:NO
0