結果
問題 |
No.792 真理関数をつくろう
|
ユーザー |
![]() |
提出日時 | 2024-04-07 09:12:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-10-01 04:23:48 |
合計ジャッジ時間 | 2,574 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 22 |
ソースコード
ans_lst=[] N=int(input()) for i in range(1<<N): *Q,R=map(int,input().split()) ans=[] for q in Q: s="" if not q: s+="¬" s+="P_" s+=str(q) ans.append(s) ans_lst.append("("+"∧".join(ans)+")") print("A="+"∨".join(ans_lst))