結果

問題 No.408 五輪ピック
ユーザー %20%20
提出日時 2020-06-28 09:26:37
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 30,688 KB
最終ジャッジ日時 2023-09-21 09:31:16
合計ジャッジ時間 9,181 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,108 KB
testcase_01 AC 6 ms
5,160 KB
testcase_02 AC 6 ms
5,320 KB
testcase_03 AC 6 ms
5,104 KB
testcase_04 AC 6 ms
5,160 KB
testcase_05 AC 366 ms
21,136 KB
testcase_06 AC 228 ms
20,612 KB
testcase_07 AC 311 ms
22,088 KB
testcase_08 AC 257 ms
15,672 KB
testcase_09 AC 257 ms
16,476 KB
testcase_10 AC 197 ms
17,528 KB
testcase_11 AC 192 ms
16,320 KB
testcase_12 AC 354 ms
22,684 KB
testcase_13 AC 355 ms
20,388 KB
testcase_14 AC 72 ms
10,296 KB
testcase_15 AC 361 ms
21,124 KB
testcase_16 AC 390 ms
21,024 KB
testcase_17 AC 391 ms
20,432 KB
testcase_18 AC 395 ms
21,836 KB
testcase_19 AC 421 ms
24,132 KB
testcase_20 AC 112 ms
14,064 KB
testcase_21 AC 60 ms
10,148 KB
testcase_22 AC 182 ms
20,212 KB
testcase_23 AC 503 ms
30,688 KB
testcase_24 WA -
testcase_25 AC 346 ms
21,064 KB
testcase_26 AC 440 ms
27,832 KB
testcase_27 AC 367 ms
20,728 KB
testcase_28 AC 257 ms
19,372 KB
testcase_29 AC 251 ms
19,376 KB
testcase_30 WA -
testcase_31 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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