結果

問題 No.1674 Introduction to XOR
ユーザー AEnAEn
提出日時 2022-05-12 00:30:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 282 bytes
コンパイル時間 1,626 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 76,236 KB
最終ジャッジ日時 2023-09-26 16:30:39
合計ジャッジ時間 5,009 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,032 KB
testcase_01 AC 73 ms
71,184 KB
testcase_02 AC 73 ms
71,368 KB
testcase_03 AC 74 ms
70,908 KB
testcase_04 AC 77 ms
71,160 KB
testcase_05 AC 73 ms
71,284 KB
testcase_06 AC 72 ms
71,148 KB
testcase_07 AC 71 ms
71,188 KB
testcase_08 AC 72 ms
71,184 KB
testcase_09 AC 71 ms
71,364 KB
testcase_10 AC 71 ms
71,364 KB
testcase_11 AC 72 ms
71,244 KB
testcase_12 AC 73 ms
71,188 KB
testcase_13 AC 71 ms
71,016 KB
testcase_14 AC 76 ms
75,648 KB
testcase_15 AC 77 ms
76,044 KB
testcase_16 AC 73 ms
71,112 KB
testcase_17 AC 80 ms
76,004 KB
testcase_18 AC 77 ms
75,964 KB
testcase_19 AC 78 ms
75,916 KB
testcase_20 AC 80 ms
76,028 KB
testcase_21 AC 72 ms
71,284 KB
testcase_22 AC 79 ms
76,236 KB
testcase_23 AC 77 ms
75,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
b=[0]*61
for i in range(N):
    s = 2**59
    for j in reversed(range(60)):
        if A[i]>=s:
            A[i] -= s
            b[j] += 1
        s //= 2
for i in range(61):
    if b[i] == 0:
        print(2**i)
        exit()
0