結果

問題 No.1674 Introduction to XOR
ユーザー kyaneko999kyaneko999
提出日時 2021-09-10 22:10:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 208 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 75,828 KB
最終ジャッジ日時 2023-09-02 18:00:42
合計ジャッジ時間 3,021 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,348 KB
testcase_01 AC 67 ms
71,448 KB
testcase_02 AC 70 ms
71,076 KB
testcase_03 AC 66 ms
71,104 KB
testcase_04 AC 66 ms
71,284 KB
testcase_05 AC 64 ms
71,176 KB
testcase_06 AC 64 ms
71,236 KB
testcase_07 AC 63 ms
71,244 KB
testcase_08 AC 63 ms
71,264 KB
testcase_09 AC 67 ms
71,176 KB
testcase_10 AC 66 ms
71,336 KB
testcase_11 AC 67 ms
71,436 KB
testcase_12 AC 64 ms
71,228 KB
testcase_13 AC 64 ms
71,260 KB
testcase_14 AC 64 ms
71,376 KB
testcase_15 AC 67 ms
71,168 KB
testcase_16 AC 68 ms
71,340 KB
testcase_17 AC 66 ms
71,484 KB
testcase_18 AC 63 ms
71,212 KB
testcase_19 AC 66 ms
71,364 KB
testcase_20 AC 66 ms
71,284 KB
testcase_21 AC 68 ms
71,228 KB
testcase_22 AC 68 ms
71,288 KB
testcase_23 AC 68 ms
75,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
ans=1
while 1:
    ok=1
    for a in A:
        if (a+ans)!=(a^ans):
            ok=0
            break
    if ok:
        print(ans)
        exit()
    ans<<=1
0