結果

問題 No.1082 XORのXOR
ユーザー hir355hir355
提出日時 2020-06-19 21:25:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 76,772 KB
最終ジャッジ日時 2023-09-16 13:14:46
合計ジャッジ時間 4,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,076 KB
testcase_01 AC 69 ms
71,172 KB
testcase_02 AC 71 ms
71,260 KB
testcase_03 AC 82 ms
76,720 KB
testcase_04 AC 82 ms
76,544 KB
testcase_05 AC 82 ms
76,544 KB
testcase_06 AC 82 ms
76,576 KB
testcase_07 AC 82 ms
76,384 KB
testcase_08 AC 82 ms
76,772 KB
testcase_09 AC 83 ms
76,304 KB
testcase_10 AC 84 ms
76,656 KB
testcase_11 AC 82 ms
76,548 KB
testcase_12 AC 84 ms
76,616 KB
testcase_13 AC 83 ms
76,532 KB
testcase_14 AC 82 ms
76,660 KB
testcase_15 AC 84 ms
76,576 KB
testcase_16 AC 82 ms
76,568 KB
testcase_17 AC 83 ms
76,628 KB
testcase_18 AC 83 ms
76,300 KB
testcase_19 AC 84 ms
76,604 KB
testcase_20 AC 82 ms
76,408 KB
testcase_21 AC 80 ms
76,648 KB
testcase_22 AC 82 ms
76,292 KB
testcase_23 AC 83 ms
76,544 KB
testcase_24 AC 82 ms
76,572 KB
testcase_25 AC 82 ms
76,584 KB
testcase_26 AC 84 ms
76,680 KB
testcase_27 AC 85 ms
76,540 KB
testcase_28 AC 70 ms
70,960 KB
testcase_29 AC 70 ms
71,172 KB
testcase_30 AC 71 ms
71,232 KB
testcase_31 AC 70 ms
70,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    for j in range(i + 1, n):
        ans = max(ans, a[i] ^ a[j])
print(ans)
0