結果

問題 No.2442 線形写像
ユーザー miho-4miho-4
提出日時 2023-08-25 22:54:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 87,224 KB
最終ジャッジ日時 2023-08-25 22:54:49
合計ジャッジ時間 3,716 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,176 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 71 ms
71,340 KB
testcase_04 WA -
testcase_05 AC 72 ms
71,220 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,364 KB
testcase_08 AC 73 ms
71,056 KB
testcase_09 WA -
testcase_10 AC 84 ms
75,464 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 82 ms
75,268 KB
testcase_14 AC 115 ms
77,764 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 164 ms
78,260 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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
	if cnt not in [0,cnt2]:
		exit(print("No"))

print("Yes")
0