結果

問題 No.1082 XORのXOR
ユーザー kept1994
提出日時 2021-08-28 16:55:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 75,988 KB
最終ジャッジ日時 2024-11-21 21:06:56
合計ジャッジ時間 4,943 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    from itertools import combinations
    N = int(input())
    # N, K = map(int,input().split())
    A = list(map(int,input().split()))
    ans = 0
    for l in combinations(A, 2):
        ans = max(ans, l[0] ^ l[1])
    print(ans)

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