結果

問題 No.1674 Introduction to XOR
ユーザー first_vilfirst_vil
提出日時 2021-09-10 21:28:14
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 996 ms
コンパイル使用メモリ 86,928 KB
実行使用メモリ 76,428 KB
最終ジャッジ日時 2023-09-02 15:55:43
合計ジャッジ時間 3,268 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,236 KB
testcase_01 AC 72 ms
71,240 KB
testcase_02 AC 71 ms
71,284 KB
testcase_03 AC 72 ms
71,284 KB
testcase_04 AC 71 ms
71,276 KB
testcase_05 AC 72 ms
71,312 KB
testcase_06 AC 72 ms
71,328 KB
testcase_07 AC 70 ms
71,516 KB
testcase_08 AC 71 ms
71,100 KB
testcase_09 AC 70 ms
71,284 KB
testcase_10 AC 73 ms
71,308 KB
testcase_11 AC 72 ms
71,516 KB
testcase_12 AC 72 ms
71,240 KB
testcase_13 AC 72 ms
71,464 KB
testcase_14 AC 75 ms
76,428 KB
testcase_15 AC 75 ms
75,956 KB
testcase_16 AC 72 ms
71,044 KB
testcase_17 AC 76 ms
76,020 KB
testcase_18 AC 74 ms
76,048 KB
testcase_19 AC 75 ms
75,940 KB
testcase_20 AC 75 ms
76,288 KB
testcase_21 AC 71 ms
71,380 KB
testcase_22 AC 76 ms
75,824 KB
testcase_23 AC 75 ms
75,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
for j in range(100):
    f=True
    for i in range(n):
        f&=(a[i]&(1<<j))==0
    if f:
        print(1<<j)
        exit()
        
0