結果

問題 No.2442 線形写像
ユーザー グミグミ
提出日時 2023-08-25 21:35:21
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 302 bytes
コンパイル時間 641 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 76,376 KB
最終ジャッジ日時 2023-08-25 21:35:30
合計ジャッジ時間 5,741 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,240 KB
testcase_01 AC 66 ms
71,200 KB
testcase_02 AC 68 ms
71,004 KB
testcase_03 AC 65 ms
71,328 KB
testcase_04 AC 67 ms
71,156 KB
testcase_05 AC 68 ms
71,140 KB
testcase_06 AC 68 ms
70,992 KB
testcase_07 AC 72 ms
75,056 KB
testcase_08 AC 75 ms
75,280 KB
testcase_09 AC 76 ms
75,956 KB
testcase_10 AC 85 ms
76,372 KB
testcase_11 AC 83 ms
75,932 KB
testcase_12 AC 83 ms
76,132 KB
testcase_13 AC 87 ms
76,376 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

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