結果

問題 No.2090 否定論理積と充足可能性
ユーザー tails
提出日時 2022-09-30 21:47:32
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 6,952 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-22 23:15:05
合計ジャッジ時間 1,277 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
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