結果

問題 No.2090 否定論理積と充足可能性
ユーザー googol_S0
提出日時 2022-09-30 21:25:01
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 289 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 65,024 KB
最終ジャッジ日時 2024-12-22 22:10:44
合計ジャッジ時間 2,306 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 RE * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A=list(map(int,input().split()))
S=sorted(set(A))
D=dict()
for i in range(len(S)):
  D[S[i]]=i
def f(x,y):
  return 1^(x&y)

for i in range(1<<6):
  x=[(i>>j)&1 for j in range(6)]
  if f(f(f(x[A[0]],x[A[1]]),x[A[2]]),f(f(x[A[3]],x[A[4]]),x[A[5]])):
    print('YES')
    exit()
print('NO')
0