結果

問題 No.1674 Introduction to XOR
ユーザー kept1994kept1994
提出日時 2021-09-11 00:24:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 503 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 76,292 KB
最終ジャッジ日時 2023-09-03 13:47:39
合計ジャッジ時間 4,078 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,200 KB
testcase_01 AC 74 ms
71,536 KB
testcase_02 AC 75 ms
71,328 KB
testcase_03 AC 75 ms
71,488 KB
testcase_04 AC 75 ms
71,584 KB
testcase_05 AC 74 ms
71,396 KB
testcase_06 AC 75 ms
71,464 KB
testcase_07 AC 76 ms
71,532 KB
testcase_08 AC 74 ms
71,548 KB
testcase_09 AC 74 ms
71,404 KB
testcase_10 AC 75 ms
71,396 KB
testcase_11 AC 73 ms
71,196 KB
testcase_12 AC 74 ms
71,324 KB
testcase_13 AC 76 ms
71,188 KB
testcase_14 AC 78 ms
76,292 KB
testcase_15 AC 78 ms
76,212 KB
testcase_16 AC 74 ms
71,484 KB
testcase_17 AC 76 ms
76,168 KB
testcase_18 AC 78 ms
76,220 KB
testcase_19 AC 78 ms
76,260 KB
testcase_20 AC 79 ms
76,232 KB
testcase_21 AC 75 ms
71,392 KB
testcase_22 AC 79 ms
76,220 KB
testcase_23 AC 77 ms
76,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N = int(input())
    A = list(map(int, input().split()))
    nums = [True] * 65
    # import math
    # # print(math.log2(max(A)))
    # # print(10 ** 18)
    # # print(2 ** 60)
    # # print(2 ** 60 > 10 ** 18)
    for aa in A:
        for i in range(65):
            if aa >> i & 1:
                nums[i] = False      
    for i, f in enumerate(nums):
        if f:
            print(2 ** i)
            return
if __name__ == '__main__':
    main()
0