結果

問題 No.1674 Introduction to XOR
ユーザー tcltktcltk
提出日時 2021-10-16 12:12:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 528 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 81,632 KB
実行使用メモリ 86,460 KB
最終ジャッジ日時 2023-10-17 22:07:33
合計ジャッジ時間 4,578 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
85,976 KB
testcase_01 AC 128 ms
86,004 KB
testcase_02 AC 133 ms
86,004 KB
testcase_03 AC 130 ms
86,004 KB
testcase_04 AC 130 ms
86,000 KB
testcase_05 AC 130 ms
86,000 KB
testcase_06 AC 128 ms
86,000 KB
testcase_07 AC 130 ms
86,000 KB
testcase_08 AC 129 ms
86,004 KB
testcase_09 AC 129 ms
86,004 KB
testcase_10 AC 130 ms
86,004 KB
testcase_11 AC 133 ms
86,004 KB
testcase_12 AC 130 ms
86,000 KB
testcase_13 AC 130 ms
86,000 KB
testcase_14 AC 129 ms
86,308 KB
testcase_15 AC 134 ms
86,452 KB
testcase_16 AC 129 ms
86,004 KB
testcase_17 AC 131 ms
86,456 KB
testcase_18 AC 130 ms
86,452 KB
testcase_19 AC 133 ms
86,452 KB
testcase_20 AC 132 ms
86,460 KB
testcase_21 AC 130 ms
86,004 KB
testcase_22 AC 134 ms
86,460 KB
testcase_23 AC 132 ms
86,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
import bisect
import heapq


def input():
    return sys.stdin.readline()[:-1]


# sys.setrecursionlimit(1000000)

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)

INF = 10**10

def solve(N, A):
    for k in range(100):
        if len([a for a in A if a & (1<<k) == 0]) == N:
            return (1<<k)

N = int(input())
A = list(map(int, input().split()))
print(solve(N, A))
0