結果
問題 | No.2090 否定論理積と充足可能性 |
ユーザー | だれ |
提出日時 | 2022-09-30 21:39:59 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 502 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 10,940 KB |
実行使用メモリ | 8,272 KB |
最終ジャッジ日時 | 2023-08-24 15:02:58 |
合計ジャッジ時間 | 1,253 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
8,156 KB |
testcase_01 | AC | 15 ms
8,120 KB |
testcase_02 | AC | 15 ms
8,272 KB |
testcase_03 | AC | 16 ms
8,076 KB |
testcase_04 | WA | - |
testcase_05 | AC | 15 ms
8,248 KB |
testcase_06 | AC | 15 ms
8,184 KB |
testcase_07 | AC | 15 ms
8,260 KB |
testcase_08 | AC | 15 ms
8,076 KB |
testcase_09 | AC | 15 ms
8,128 KB |
testcase_10 | WA | - |
testcase_11 | AC | 15 ms
8,080 KB |
testcase_12 | AC | 15 ms
8,148 KB |
testcase_13 | AC | 16 ms
8,168 KB |
testcase_14 | AC | 15 ms
8,268 KB |
testcase_15 | AC | 15 ms
8,168 KB |
testcase_16 | AC | 15 ms
8,184 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 15 ms
8,172 KB |
ソースコード
def u(v): a, b, c, d, e, f = v return not((not(a and b) and c) and not(not(d and e) and f)) l = list(map(int, input().split())) for i in range(1 << 6): v = [0] * 6 for j in range(6): if i >> j & 1: v[j] = 1 f = 1 for j in range(6): for k in range(6): if j == k: continue if l[j] == l[k] and v[j] != v[k]: f = 0 if f: if u(v): print("YES") exit() print("NO")