結果

問題 No.1674 Introduction to XOR
ユーザー chineristACchineristAC
提出日時 2021-09-10 21:31:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 1,000 ms
コード長 267 bytes
コンパイル時間 1,839 ms
コンパイル使用メモリ 86,640 KB
実行使用メモリ 72,300 KB
最終ジャッジ日時 2023-09-02 16:04:49
合計ジャッジ時間 4,842 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,928 KB
testcase_01 AC 93 ms
71,688 KB
testcase_02 AC 95 ms
71,816 KB
testcase_03 AC 94 ms
71,856 KB
testcase_04 AC 95 ms
72,000 KB
testcase_05 AC 95 ms
71,964 KB
testcase_06 AC 95 ms
72,240 KB
testcase_07 AC 92 ms
71,864 KB
testcase_08 AC 93 ms
72,008 KB
testcase_09 AC 92 ms
72,124 KB
testcase_10 AC 93 ms
71,788 KB
testcase_11 AC 97 ms
72,300 KB
testcase_12 AC 91 ms
71,976 KB
testcase_13 AC 93 ms
72,028 KB
testcase_14 AC 94 ms
72,024 KB
testcase_15 AC 94 ms
71,976 KB
testcase_16 AC 93 ms
71,688 KB
testcase_17 AC 95 ms
71,788 KB
testcase_18 AC 94 ms
71,852 KB
testcase_19 AC 95 ms
72,244 KB
testcase_20 AC 93 ms
71,996 KB
testcase_21 AC 97 ms
71,820 KB
testcase_22 AC 97 ms
71,968 KB
testcase_23 AC 95 ms
72,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()

g = 0
for a in A:
    g |= a

for bit in range(70):
    if g>>bit & 1==0:
        print(2**bit)
        break


0