結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,143 ms
78,788 KB
testcase_01 AC 75 ms
72,116 KB
testcase_02 AC 74 ms
71,832 KB
testcase_03 AC 1,180 ms
78,076 KB
testcase_04 AC 1,185 ms
78,576 KB
testcase_05 AC 74 ms
71,948 KB
testcase_06 AC 1,198 ms
78,260 KB
testcase_07 AC 74 ms
71,992 KB
testcase_08 AC 79 ms
71,968 KB
testcase_09 AC 1,150 ms
78,316 KB
testcase_10 AC 80 ms
72,148 KB
testcase_11 AC 1,171 ms
78,284 KB
testcase_12 AC 1,184 ms
78,352 KB
testcase_13 AC 81 ms
75,856 KB
testcase_14 AC 124 ms
78,700 KB
testcase_15 AC 1,374 ms
79,020 KB
testcase_16 TLE -
testcase_17 AC 202 ms
79,844 KB
testcase_18 AC 1,488 ms
79,720 KB
testcase_19 AC 1,421 ms
79,852 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(7*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