結果

問題 No.2090 否定論理積と充足可能性
ユーザー tailstails
提出日時 2022-09-30 21:47:32
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 7,120 KB
実行使用メモリ 5,356 KB
最終ジャッジ日時 2023-08-24 15:16:08
合計ジャッジ時間 2,068 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,272 KB
testcase_01 AC 6 ms
5,336 KB
testcase_02 AC 6 ms
5,324 KB
testcase_03 AC 6 ms
5,228 KB
testcase_04 WA -
testcase_05 AC 6 ms
5,248 KB
testcase_06 AC 6 ms
5,116 KB
testcase_07 AC 6 ms
5,232 KB
testcase_08 AC 6 ms
5,136 KB
testcase_09 AC 6 ms
5,116 KB
testcase_10 WA -
testcase_11 AC 6 ms
5,140 KB
testcase_12 AC 6 ms
5,352 KB
testcase_13 AC 6 ms
5,184 KB
testcase_14 AC 6 ms
5,128 KB
testcase_15 AC 6 ms
5,248 KB
testcase_16 AC 6 ms
5,228 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 6 ms
5,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::h" used only once: possible typo at Main.pl line 2.
Name "main::k" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

sub n{!($a[$v[$_[0]]]&$a[$v[$_[1]]])}
@v=map$h{glob<>}//=$k++,0..5;
print grep({
	@a=eval;
	exit!print"YES"if n(n(n(0,1),2),n(n(3,4),5));
}glob'{0,1},'x6)?YES:NO;
0