結果

問題 No.1674 Introduction to XOR
ユーザー 👑 tamatotamato
提出日時 2021-09-10 21:26:29
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 1,854 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,772 KB
最終ジャッジ日時 2023-09-02 15:51:54
合計ジャッジ時間 4,123 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,628 KB
testcase_01 AC 74 ms
71,672 KB
testcase_02 AC 75 ms
71,628 KB
testcase_03 AC 76 ms
71,216 KB
testcase_04 AC 76 ms
71,332 KB
testcase_05 AC 76 ms
71,680 KB
testcase_06 AC 77 ms
71,652 KB
testcase_07 AC 76 ms
71,596 KB
testcase_08 AC 77 ms
71,772 KB
testcase_09 AC 76 ms
71,728 KB
testcase_10 AC 78 ms
71,716 KB
testcase_11 AC 77 ms
71,712 KB
testcase_12 AC 75 ms
71,448 KB
testcase_13 AC 75 ms
71,644 KB
testcase_14 AC 77 ms
71,544 KB
testcase_15 AC 76 ms
71,616 KB
testcase_16 AC 76 ms
71,744 KB
testcase_17 AC 76 ms
71,412 KB
testcase_18 AC 75 ms
71,328 KB
testcase_19 AC 77 ms
71,540 KB
testcase_20 AC 78 ms
71,564 KB
testcase_21 AC 75 ms
71,640 KB
testcase_22 AC 75 ms
71,684 KB
testcase_23 AC 77 ms
71,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    A = list(map(int, input().split()))
    c = 0
    for a in A:
        c |= a
    for i in range(70):
        if not c >> i & 1:
            print(1 << i)
            break


if __name__ == '__main__':
    main()
0