結果
| 問題 |
No.2442 線形写像
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-25 22:56:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 82,668 KB |
| 実行使用メモリ | 86,504 KB |
| 最終ジャッジ日時 | 2024-12-24 10:30:59 |
| 合計ジャッジ時間 | 2,996 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 10 |
ソースコード
n=int(input())
L=[int(input()) for _ in range(1<<n)]
for bit in range(64):
cnt=0
cnt2=0
for i in range(1<<n):
if i>>bit&1:
if L[i]>>bit&1:
cnt+=1
cnt2+=1
else:
if L[i]>>bit&1:
exit(print("No"))
if cnt not in [0,cnt2]:
exit(print("No"))
print("Yes")