結果

問題 No.1674 Introduction to XOR
コンテスト
ユーザー H20
提出日時 2021-09-10 21:39:38
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 263 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 153 ms
コンパイル使用メモリ 85,784 KB
実行使用メモリ 61,056 KB
最終ジャッジ日時 2026-03-05 04:09:53
合計ジャッジ時間 2,056 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
A = list(map(int, input().split())) 
B = []
for a in A:
    B.append(format(a, 'b')[::-1])
i = 0
while True:
    all0 = True
    for b in B:
        if len(b)>i and b[i]=='1':
            all0=False
    if all0:
        break
    i+=1
print(2**i)
0