結果
| 問題 |
No.2442 線形写像
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-25 22:38:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 369 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 91,520 KB |
| 最終ジャッジ日時 | 2024-12-24 10:01:47 |
| 合計ジャッジ時間 | 7,808 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 2 |
ソースコード
import sys
input = sys.stdin.readline
n = int(input())
n2 = 1<<n
A = [int(input()) for i in range(n2)]
for b in range(n2):
a = A[b]
b1 = b
if a != A[b1]^A[b^b1]:
print("No")
exit()
now = b & (b-1)
while now > now^b:
if a != A[now]^A[now^b]:
print("No")
exit()
now = (now-1) & b
print("Yes")