結果

問題 No.2442 線形写像
ユーザー t98slidert98slider
提出日時 2023-06-10 10:45:22
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 289 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 88,212 KB
最終ジャッジ日時 2023-08-30 20:24:28
合計ジャッジ時間 6,138 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
78,388 KB
testcase_01 AC 70 ms
71,252 KB
testcase_02 AC 75 ms
71,272 KB
testcase_03 AC 72 ms
71,436 KB
testcase_04 AC 73 ms
71,428 KB
testcase_05 AC 74 ms
71,252 KB
testcase_06 AC 73 ms
71,320 KB
testcase_07 AC 71 ms
71,472 KB
testcase_08 AC 72 ms
71,444 KB
testcase_09 AC 78 ms
75,680 KB
testcase_10 AC 79 ms
75,616 KB
testcase_11 AC 83 ms
76,992 KB
testcase_12 AC 82 ms
76,976 KB
testcase_13 AC 83 ms
76,560 KB
testcase_14 AC 84 ms
76,568 KB
testcase_15 AC 226 ms
77,868 KB
testcase_16 AC 227 ms
77,956 KB
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [0] * (1 << N)
A[0] = int(input())

if A[0]:
    print('No')
    exit()

for S in range(1, 1 << N):
    A[S] = int(input())
    T = S
    while T:
        if A[S] ^ A[T] ^ A[S ^ T]:
            print('No')
            exit()
        T -= 1
        T &= S

print('Yes')
0