結果

問題 No.1674 Introduction to XOR
ユーザー gr1msl3y
提出日時 2021-09-10 21:30:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 206 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-06-11 22:36:43
合計ジャッジ時間 2,111 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
v = 0
for a in A:
    v |= a

n = v.bit_length()
for i in range(n):
    if not (v >> i) & 1:
        print(1 << i)
        break
else:
    print(1 << n)
0