結果

問題 No.2442 線形写像
ユーザー titiatitia
提出日時 2023-08-25 21:59:58
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 303 bytes
コンパイル時間 1,297 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 78,608 KB
最終ジャッジ日時 2023-08-25 22:00:24
合計ジャッジ時間 25,684 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,980 ms
78,368 KB
testcase_01 AC 89 ms
71,996 KB
testcase_02 AC 88 ms
72,056 KB
testcase_03 TLE -
testcase_04 AC 1,965 ms
77,900 KB
testcase_05 AC 89 ms
72,080 KB
testcase_06 AC 1,900 ms
78,172 KB
testcase_07 AC 87 ms
71,944 KB
testcase_08 AC 88 ms
72,008 KB
testcase_09 AC 1,951 ms
77,844 KB
testcase_10 AC 89 ms
72,016 KB
testcase_11 AC 1,936 ms
78,140 KB
testcase_12 AC 1,932 ms
78,252 KB
testcase_13 AC 91 ms
71,996 KB
testcase_14 AC 141 ms
78,608 KB
testcase_15 TLE -
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

from random import randint

N=int(input())
A=[int(input()) for i in range(2**N)]

if A[0]!=0:
    print("No")
    exit()

for i in range(10**7):
    x,y=randint(0,2**N-1),randint(0,2**N-1)

    if A[x^y]!=A[x]^A[y]:
        print("No")
        exit()

print("Yes")
0