結果

問題 No.2442 線形写像
ユーザー titiatitia
提出日時 2023-08-25 22:01:22
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 306 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 86,868 KB
実行使用メモリ 88,880 KB
最終ジャッジ日時 2023-08-25 22:01:43
合計ジャッジ時間 19,215 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 982 ms
78,088 KB
testcase_01 AC 88 ms
71,976 KB
testcase_02 AC 116 ms
72,000 KB
testcase_03 AC 1,016 ms
77,892 KB
testcase_04 AC 1,041 ms
78,108 KB
testcase_05 AC 90 ms
71,728 KB
testcase_06 AC 1,038 ms
78,112 KB
testcase_07 AC 92 ms
71,976 KB
testcase_08 AC 90 ms
72,032 KB
testcase_09 AC 1,053 ms
77,944 KB
testcase_10 AC 93 ms
71,728 KB
testcase_11 AC 1,064 ms
78,056 KB
testcase_12 AC 1,058 ms
77,932 KB
testcase_13 AC 92 ms
72,376 KB
testcase_14 AC 141 ms
78,720 KB
testcase_15 AC 1,238 ms
78,708 KB
testcase_16 TLE -
testcase_17 AC 165 ms
79,476 KB
testcase_18 AC 1,283 ms
79,192 KB
testcase_19 AC 1,258 ms
79,236 KB
testcase_20 TLE -
権限があれば一括ダウンロードができます

ソースコード

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(5*10**6):
    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