結果

問題 No.2090 否定論理積と充足可能性
ユーザー tailstails
提出日時 2022-09-30 22:02:57
言語 Perl
(5.38.2)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,324 KB
最終ジャッジ日時 2023-08-24 15:34:52
合計ジャッジ時間 1,476 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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