結果

問題 No.408 五輪ピック
ユーザー %20%20
提出日時 2020-06-28 09:32:11
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 594 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 25,204 KB
最終ジャッジ日時 2023-09-21 09:41:40
合計ジャッジ時間 10,389 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,092 KB
testcase_01 AC 6 ms
5,276 KB
testcase_02 AC 6 ms
5,232 KB
testcase_03 AC 6 ms
5,384 KB
testcase_04 AC 6 ms
5,228 KB
testcase_05 AC 406 ms
17,288 KB
testcase_06 AC 220 ms
15,928 KB
testcase_07 AC 301 ms
17,048 KB
testcase_08 AC 248 ms
13,648 KB
testcase_09 AC 256 ms
14,436 KB
testcase_10 WA -
testcase_11 AC 190 ms
13,224 KB
testcase_12 AC 346 ms
18,152 KB
testcase_13 AC 402 ms
17,136 KB
testcase_14 WA -
testcase_15 AC 414 ms
17,504 KB
testcase_16 AC 415 ms
17,008 KB
testcase_17 AC 373 ms
17,920 KB
testcase_18 AC 394 ms
18,832 KB
testcase_19 AC 427 ms
19,796 KB
testcase_20 AC 103 ms
11,364 KB
testcase_21 AC 58 ms
8,536 KB
testcase_22 AC 178 ms
15,640 KB
testcase_23 AC 573 ms
25,204 KB
testcase_24 AC 336 ms
21,620 KB
testcase_25 AC 340 ms
17,516 KB
testcase_26 AC 422 ms
21,592 KB
testcase_27 AC 341 ms
17,492 KB
testcase_28 AC 247 ms
15,988 KB
testcase_29 AC 247 ms
15,956 KB
testcase_30 AC 6 ms
5,208 KB
testcase_31 AC 6 ms
5,224 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