結果

問題 No.1082 XORのXOR
ユーザー wolgnikwolgnik
提出日時 2020-06-19 21:24:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 86,616 KB
実行使用メモリ 76,860 KB
最終ジャッジ日時 2023-09-16 13:09:56
合計ジャッジ時間 4,026 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,332 KB
testcase_01 AC 69 ms
71,048 KB
testcase_02 AC 67 ms
71,152 KB
testcase_03 AC 88 ms
76,428 KB
testcase_04 AC 81 ms
76,400 KB
testcase_05 AC 82 ms
76,400 KB
testcase_06 AC 82 ms
76,620 KB
testcase_07 AC 82 ms
76,688 KB
testcase_08 AC 82 ms
76,432 KB
testcase_09 AC 81 ms
76,484 KB
testcase_10 AC 81 ms
76,716 KB
testcase_11 AC 82 ms
76,512 KB
testcase_12 AC 80 ms
76,364 KB
testcase_13 AC 81 ms
76,508 KB
testcase_14 AC 81 ms
76,516 KB
testcase_15 AC 81 ms
76,388 KB
testcase_16 AC 79 ms
76,860 KB
testcase_17 AC 82 ms
76,408 KB
testcase_18 AC 81 ms
76,352 KB
testcase_19 AC 79 ms
76,324 KB
testcase_20 AC 79 ms
76,548 KB
testcase_21 AC 77 ms
76,608 KB
testcase_22 AC 81 ms
76,584 KB
testcase_23 AC 80 ms
76,496 KB
testcase_24 AC 82 ms
76,604 KB
testcase_25 AC 80 ms
76,524 KB
testcase_26 AC 79 ms
76,500 KB
testcase_27 AC 81 ms
76,688 KB
testcase_28 AC 69 ms
71,152 KB
testcase_29 AC 69 ms
71,240 KB
testcase_30 AC 69 ms
71,272 KB
testcase_31 AC 69 ms
71,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
N = int(input())
a = list(map(int, input().split()))
res = 0
for i in range(N):
  for j in range(i + 1, N): res = max(res, a[i] ^ a[j])
print(res)
0