結果

問題 No.1674 Introduction to XOR
ユーザー kept1994kept1994
提出日時 2021-09-11 00:13:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 1,345 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 75,868 KB
最終ジャッジ日時 2023-09-03 12:59:35
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,344 KB
testcase_01 AC 76 ms
71,324 KB
testcase_02 AC 74 ms
71,448 KB
testcase_03 AC 74 ms
71,628 KB
testcase_04 AC 75 ms
71,464 KB
testcase_05 AC 73 ms
71,120 KB
testcase_06 AC 75 ms
71,508 KB
testcase_07 AC 74 ms
71,468 KB
testcase_08 AC 72 ms
71,208 KB
testcase_09 AC 72 ms
71,344 KB
testcase_10 AC 73 ms
71,460 KB
testcase_11 AC 75 ms
71,392 KB
testcase_12 AC 77 ms
71,404 KB
testcase_13 AC 75 ms
71,624 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 74 ms
71,456 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N = int(input())
    A = list(map(int, input().split()))
    nums = [True] * 60
    for aa in A:
        for i in range(60):
            if aa >> i & 1:
                nums[i] = False            
    for i, f in enumerate(nums):
        if f:
            print(2 ** i)
            return  

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