結果

問題 No.1674 Introduction to XOR
ユーザー 👑 KazunKazun
提出日時 2021-09-10 21:25:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 193 bytes
コンパイル時間 579 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 76,036 KB
最終ジャッジ日時 2023-09-02 15:49:58
合計ジャッジ時間 3,356 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,532 KB
testcase_01 AC 75 ms
71,260 KB
testcase_02 AC 73 ms
71,264 KB
testcase_03 AC 74 ms
71,364 KB
testcase_04 AC 74 ms
71,236 KB
testcase_05 AC 74 ms
71,564 KB
testcase_06 AC 73 ms
71,388 KB
testcase_07 AC 73 ms
71,216 KB
testcase_08 AC 74 ms
71,388 KB
testcase_09 AC 73 ms
71,268 KB
testcase_10 AC 74 ms
71,148 KB
testcase_11 AC 75 ms
71,180 KB
testcase_12 AC 73 ms
71,216 KB
testcase_13 AC 72 ms
71,332 KB
testcase_14 AC 80 ms
76,036 KB
testcase_15 AC 78 ms
75,856 KB
testcase_16 AC 75 ms
71,312 KB
testcase_17 AC 78 ms
75,736 KB
testcase_18 AC 77 ms
75,912 KB
testcase_19 AC 79 ms
75,920 KB
testcase_20 AC 80 ms
75,948 KB
testcase_21 AC 75 ms
71,244 KB
testcase_22 AC 78 ms
75,804 KB
testcase_23 AC 78 ms
75,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))

X=1
while True:
    flag=1
    for a in A:
        if X+a!=X^a:
            flag=0

    if flag:
        exit(print(X))
    else:
        X<<=1
0