結果

問題 No.2442 線形写像
ユーザー グミ
提出日時 2023-08-25 21:35:21
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 302 bytes
コンパイル時間 552 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 142,672 KB
最終ジャッジ日時 2024-12-24 08:03:34
合計ジャッジ時間 23,428 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 TLE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
	n = int(input())
	arr = []
	m = 2**n
	for _ in range(m):
		a=int(input())
		arr.append(a)
	
	ans = True

	for i in range(m):
		for j in range(i,m):
			c = arr[i^j] == arr[i]^arr[j]
			if not c:
				ans = False
				break
	
	print('Yes' if ans else 'No')


if __name__ == "__main__":
	main()
0