結果

問題 No.1082 XORのXOR
ユーザー wattaiheiwattaihei
提出日時 2020-06-19 21:27:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 835 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 76,704 KB
最終ジャッジ日時 2023-09-16 13:20:52
合計ジャッジ時間 4,818 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,896 KB
testcase_01 AC 68 ms
71,000 KB
testcase_02 AC 70 ms
71,096 KB
testcase_03 AC 88 ms
76,540 KB
testcase_04 AC 81 ms
76,456 KB
testcase_05 AC 81 ms
76,372 KB
testcase_06 AC 82 ms
76,516 KB
testcase_07 AC 81 ms
76,384 KB
testcase_08 AC 81 ms
76,336 KB
testcase_09 AC 83 ms
76,604 KB
testcase_10 AC 82 ms
76,340 KB
testcase_11 AC 82 ms
76,332 KB
testcase_12 AC 81 ms
76,704 KB
testcase_13 AC 82 ms
76,632 KB
testcase_14 AC 84 ms
76,588 KB
testcase_15 AC 84 ms
76,448 KB
testcase_16 AC 85 ms
76,352 KB
testcase_17 AC 85 ms
76,632 KB
testcase_18 AC 84 ms
76,152 KB
testcase_19 AC 81 ms
76,148 KB
testcase_20 AC 82 ms
76,340 KB
testcase_21 AC 84 ms
76,340 KB
testcase_22 AC 82 ms
76,560 KB
testcase_23 AC 82 ms
76,600 KB
testcase_24 AC 82 ms
76,452 KB
testcase_25 AC 82 ms
76,348 KB
testcase_26 AC 83 ms
76,156 KB
testcase_27 AC 82 ms
76,400 KB
testcase_28 AC 70 ms
71,156 KB
testcase_29 AC 69 ms
71,392 KB
testcase_30 AC 70 ms
71,164 KB
testcase_31 AC 69 ms
71,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
A = list(map(int, input().split()))

ans = 0
for i in range(N-1):
    for j in range(i+1, N):
        ans = max(ans, A[i]^A[j])
print(ans)
0