結果

問題 No.1674 Introduction to XOR
ユーザー brthyyjpbrthyyjp
提出日時 2021-09-10 21:32:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 1,049 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 75,784 KB
最終ジャッジ日時 2023-09-02 16:05:11
合計ジャッジ時間 3,537 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,864 KB
testcase_01 AC 76 ms
71,360 KB
testcase_02 AC 76 ms
70,872 KB
testcase_03 AC 76 ms
71,368 KB
testcase_04 AC 74 ms
71,048 KB
testcase_05 AC 73 ms
71,224 KB
testcase_06 AC 75 ms
71,300 KB
testcase_07 AC 73 ms
71,028 KB
testcase_08 AC 72 ms
71,264 KB
testcase_09 AC 74 ms
71,176 KB
testcase_10 AC 76 ms
71,164 KB
testcase_11 AC 75 ms
71,016 KB
testcase_12 AC 75 ms
71,016 KB
testcase_13 AC 74 ms
71,212 KB
testcase_14 AC 126 ms
75,460 KB
testcase_15 AC 83 ms
75,564 KB
testcase_16 AC 76 ms
71,172 KB
testcase_17 AC 80 ms
75,496 KB
testcase_18 AC 78 ms
75,552 KB
testcase_19 AC 79 ms
75,784 KB
testcase_20 AC 78 ms
75,456 KB
testcase_21 AC 74 ms
71,344 KB
testcase_22 AC 78 ms
75,436 KB
testcase_23 AC 76 ms
75,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
B = [0]*70
for a in A:
    b = format(a, 'b')
    b = list(b)
    b.reverse()
    for i in range(len(b)):
        if b[i] == '1':
            B[i] = 1
for i in range(70):
    if B[i] == 0:
        print(1<<i)
        exit()
0