結果

問題 No.1674 Introduction to XOR
ユーザー 👑 H20H20
提出日時 2021-09-10 21:39:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 1,000 ms
コード長 263 bytes
コンパイル時間 2,848 ms
コンパイル使用メモリ 86,540 KB
実行使用メモリ 75,916 KB
最終ジャッジ日時 2023-09-02 16:22:40
合計ジャッジ時間 7,176 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,144 KB
testcase_01 AC 73 ms
71,028 KB
testcase_02 AC 77 ms
71,084 KB
testcase_03 AC 73 ms
71,248 KB
testcase_04 AC 75 ms
71,420 KB
testcase_05 AC 75 ms
71,200 KB
testcase_06 AC 74 ms
71,028 KB
testcase_07 AC 73 ms
71,272 KB
testcase_08 AC 74 ms
71,244 KB
testcase_09 AC 75 ms
71,388 KB
testcase_10 AC 74 ms
71,216 KB
testcase_11 AC 73 ms
71,184 KB
testcase_12 AC 75 ms
71,148 KB
testcase_13 AC 74 ms
71,200 KB
testcase_14 AC 89 ms
75,856 KB
testcase_15 AC 79 ms
75,916 KB
testcase_16 AC 77 ms
71,168 KB
testcase_17 AC 81 ms
75,696 KB
testcase_18 AC 78 ms
75,640 KB
testcase_19 AC 83 ms
75,736 KB
testcase_20 AC 83 ms
75,824 KB
testcase_21 AC 78 ms
71,268 KB
testcase_22 AC 81 ms
75,844 KB
testcase_23 AC 79 ms
75,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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