結果

問題 No.1674 Introduction to XOR
ユーザー NoneNone
提出日時 2021-10-04 03:39:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 76,076 KB
最終ジャッジ日時 2023-09-29 06:30:32
合計ジャッジ時間 3,353 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,448 KB
testcase_01 AC 67 ms
71,204 KB
testcase_02 AC 66 ms
71,340 KB
testcase_03 AC 67 ms
71,296 KB
testcase_04 AC 66 ms
71,216 KB
testcase_05 AC 74 ms
71,484 KB
testcase_06 AC 68 ms
71,464 KB
testcase_07 AC 66 ms
71,396 KB
testcase_08 AC 70 ms
71,300 KB
testcase_09 AC 69 ms
71,300 KB
testcase_10 AC 67 ms
71,340 KB
testcase_11 AC 64 ms
71,392 KB
testcase_12 AC 66 ms
70,936 KB
testcase_13 AC 66 ms
71,176 KB
testcase_14 AC 69 ms
75,740 KB
testcase_15 AC 70 ms
76,076 KB
testcase_16 AC 66 ms
70,952 KB
testcase_17 AC 72 ms
75,748 KB
testcase_18 AC 72 ms
76,076 KB
testcase_19 AC 72 ms
75,884 KB
testcase_20 AC 71 ms
76,040 KB
testcase_21 AC 65 ms
71,044 KB
testcase_22 AC 69 ms
75,652 KB
testcase_23 AC 71 ms
75,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int, input().split()))
F=[0]*64
for a in A:
    for i in range(64):
        if a&(1<<i):
            F[i]=1
for i in range(64):
    if F[i]==0:
        print(1<<i)
        exit()
0