結果

問題 No.1674 Introduction to XOR
ユーザー KudeKude
提出日時 2021-09-10 21:30:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 1,000 ms
コード長 168 bytes
コンパイル時間 818 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 72,396 KB
最終ジャッジ日時 2023-09-02 16:02:36
合計ジャッジ時間 4,532 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
72,268 KB
testcase_01 AC 103 ms
72,396 KB
testcase_02 AC 100 ms
72,340 KB
testcase_03 AC 102 ms
72,096 KB
testcase_04 AC 102 ms
72,236 KB
testcase_05 AC 104 ms
72,276 KB
testcase_06 AC 105 ms
72,160 KB
testcase_07 AC 102 ms
72,264 KB
testcase_08 AC 103 ms
72,264 KB
testcase_09 AC 104 ms
72,352 KB
testcase_10 AC 103 ms
72,232 KB
testcase_11 AC 103 ms
72,128 KB
testcase_12 AC 103 ms
72,296 KB
testcase_13 AC 106 ms
71,988 KB
testcase_14 AC 105 ms
72,040 KB
testcase_15 AC 106 ms
72,228 KB
testcase_16 AC 103 ms
72,272 KB
testcase_17 AC 102 ms
72,196 KB
testcase_18 AC 103 ms
72,240 KB
testcase_19 AC 103 ms
72,372 KB
testcase_20 AC 104 ms
72,248 KB
testcase_21 AC 103 ms
72,084 KB
testcase_22 AC 106 ms
72,264 KB
testcase_23 AC 106 ms
72,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
input()
x = reduce(int.__or__, map(int, input().split()), 0)
for ans in range(100):
    if x >> ans & 1 == 0:
        break
print(1 << ans)
0