結果

問題 No.1674 Introduction to XOR
ユーザー stng
提出日時 2021-09-10 22:47:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 345 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 57,344 KB
最終ジャッジ日時 2024-06-12 02:18:40
合計ジャッジ時間 1,917 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(i) for i in input().split()]

keta = [0]*n

for i in range(n):
    tmp = format(a[i], '0'+str(61)+'b')
    keta[i] = tmp
for i in range(61):
    for j in range(n):
        #print(j)
        if keta[j][60-i] == "1":
            break
        if j == n-1:
            #print(i)
            print(2**i)
            exit()
0