結果

問題 No.1082 XORのXOR
ユーザー RustyRusty
提出日時 2023-01-17 15:48:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 76,820 KB
最終ジャッジ日時 2023-08-30 19:48:35
合計ジャッジ時間 4,644 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,324 KB
testcase_01 AC 71 ms
71,244 KB
testcase_02 AC 71 ms
71,316 KB
testcase_03 AC 85 ms
76,700 KB
testcase_04 AC 87 ms
76,712 KB
testcase_05 AC 84 ms
76,768 KB
testcase_06 AC 85 ms
76,704 KB
testcase_07 AC 84 ms
76,676 KB
testcase_08 AC 85 ms
76,716 KB
testcase_09 AC 85 ms
76,624 KB
testcase_10 AC 84 ms
76,584 KB
testcase_11 AC 85 ms
76,444 KB
testcase_12 AC 83 ms
76,676 KB
testcase_13 AC 85 ms
76,732 KB
testcase_14 AC 85 ms
76,648 KB
testcase_15 AC 84 ms
76,788 KB
testcase_16 AC 85 ms
76,680 KB
testcase_17 AC 84 ms
76,672 KB
testcase_18 AC 83 ms
76,756 KB
testcase_19 AC 85 ms
76,516 KB
testcase_20 AC 85 ms
76,712 KB
testcase_21 AC 84 ms
76,640 KB
testcase_22 AC 84 ms
76,440 KB
testcase_23 AC 84 ms
76,624 KB
testcase_24 AC 85 ms
76,620 KB
testcase_25 AC 84 ms
76,764 KB
testcase_26 AC 85 ms
76,820 KB
testcase_27 AC 85 ms
76,712 KB
testcase_28 AC 71 ms
71,396 KB
testcase_29 AC 70 ms
71,344 KB
testcase_30 AC 70 ms
71,500 KB
testcase_31 AC 70 ms
71,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))

x = 0
for i in range(n):
    for j in range(i+1,n):
        if a[i]^a[j] > x:
            x = a[i]^a[j]

print(x)
0