結果

問題 No.1082 XORのXOR
ユーザー sepa38sepa38
提出日時 2023-04-16 10:02:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 62,484 KB
最終ジャッジ日時 2024-04-20 01:59:17
合計ジャッジ時間 2,603 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,892 KB
testcase_01 AC 32 ms
52,164 KB
testcase_02 AC 31 ms
52,992 KB
testcase_03 AC 43 ms
62,108 KB
testcase_04 AC 43 ms
62,484 KB
testcase_05 AC 43 ms
61,116 KB
testcase_06 AC 43 ms
61,232 KB
testcase_07 AC 44 ms
61,140 KB
testcase_08 AC 45 ms
61,060 KB
testcase_09 AC 44 ms
61,380 KB
testcase_10 AC 43 ms
61,948 KB
testcase_11 AC 43 ms
61,268 KB
testcase_12 AC 42 ms
61,876 KB
testcase_13 AC 42 ms
60,636 KB
testcase_14 AC 42 ms
61,460 KB
testcase_15 AC 42 ms
61,672 KB
testcase_16 AC 43 ms
61,404 KB
testcase_17 AC 43 ms
62,056 KB
testcase_18 AC 43 ms
61,392 KB
testcase_19 AC 43 ms
61,752 KB
testcase_20 AC 42 ms
62,108 KB
testcase_21 AC 42 ms
61,024 KB
testcase_22 AC 42 ms
60,892 KB
testcase_23 AC 42 ms
60,880 KB
testcase_24 AC 43 ms
60,800 KB
testcase_25 AC 44 ms
61,112 KB
testcase_26 AC 43 ms
62,236 KB
testcase_27 AC 43 ms
61,076 KB
testcase_28 AC 33 ms
52,176 KB
testcase_29 AC 32 ms
52,196 KB
testcase_30 AC 32 ms
52,576 KB
testcase_31 AC 31 ms
52,276 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