結果

問題 No.1674 Introduction to XOR
ユーザー hiragnhiragn
提出日時 2022-11-23 15:08:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 11,640 KB
実行使用メモリ 9,916 KB
最終ジャッジ日時 2023-10-25 00:18:22
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,908 KB
testcase_01 AC 28 ms
9,908 KB
testcase_02 AC 29 ms
9,908 KB
testcase_03 AC 28 ms
9,908 KB
testcase_04 AC 29 ms
9,908 KB
testcase_05 AC 28 ms
9,908 KB
testcase_06 AC 28 ms
9,908 KB
testcase_07 AC 28 ms
9,908 KB
testcase_08 AC 28 ms
9,908 KB
testcase_09 AC 29 ms
9,908 KB
testcase_10 AC 28 ms
9,908 KB
testcase_11 AC 28 ms
9,908 KB
testcase_12 AC 28 ms
9,908 KB
testcase_13 AC 28 ms
9,908 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 28 ms
9,908 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    _ = int(input())
    arr = list(map(int, input().split()))

    for i in range(60):
        ans = 2 ** i
        if all(a & ans == 0 for a in arr):
            exit(print(ans))


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