結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,484 KB
testcase_01 AC 68 ms
71,308 KB
testcase_02 AC 67 ms
71,380 KB
testcase_03 AC 66 ms
71,236 KB
testcase_04 AC 67 ms
71,480 KB
testcase_05 AC 68 ms
71,384 KB
testcase_06 AC 67 ms
71,600 KB
testcase_07 AC 67 ms
71,576 KB
testcase_08 AC 69 ms
71,596 KB
testcase_09 AC 72 ms
75,812 KB
testcase_10 AC 73 ms
75,872 KB
testcase_11 AC 78 ms
77,012 KB
testcase_12 AC 80 ms
77,056 KB
testcase_13 AC 80 ms
76,876 KB
testcase_14 AC 80 ms
76,924 KB
testcase_15 AC 217 ms
77,864 KB
testcase_16 AC 220 ms
77,852 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