結果
| 問題 |
No.792 真理関数をつくろう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-10 18:49:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 703 bytes |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-09-15 08:13:20 |
| 合計ジャッジ時間 | 2,176 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 22 |
ソースコード
cnot = chr(172)
cand = chr(8743)
cor = chr(8744)
cbot = chr(8869)
def main():
n = int(input())
ans = ""
for _ in range(2 ** n):
v = list(map(int, input().split()))
if v[-1] == 0:
continue
ans += "A=" if len(ans) == 0 else cor
ans += "("
for i in range(n):
if i != 0:
ans += cand
if v[i] == 0:
ans += cnot
ans += "P_"
ans += str(i + 1)
ans += ")"
if len(ans) == 0:
ans = "A=" + cbot
print(ans)
def checkord():
s = input()
for c in s:
print(c, ord(c))
if __name__ == "__main__":
# checkord()
main()