結果

問題 No.1082 XORのXOR
ユーザー U SU S
提出日時 2020-06-19 21:36:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,364 KB
実行使用メモリ 76,780 KB
最終ジャッジ日時 2023-09-16 13:38:24
合計ジャッジ時間 4,197 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,204 KB
testcase_01 AC 69 ms
71,464 KB
testcase_02 AC 68 ms
71,352 KB
testcase_03 AC 80 ms
76,716 KB
testcase_04 AC 84 ms
76,736 KB
testcase_05 AC 81 ms
76,552 KB
testcase_06 AC 81 ms
76,552 KB
testcase_07 AC 82 ms
76,416 KB
testcase_08 AC 82 ms
76,484 KB
testcase_09 AC 81 ms
76,628 KB
testcase_10 AC 83 ms
76,700 KB
testcase_11 AC 84 ms
76,608 KB
testcase_12 AC 83 ms
76,656 KB
testcase_13 AC 84 ms
76,576 KB
testcase_14 AC 82 ms
76,660 KB
testcase_15 AC 82 ms
76,780 KB
testcase_16 AC 82 ms
76,740 KB
testcase_17 AC 81 ms
76,664 KB
testcase_18 AC 81 ms
76,744 KB
testcase_19 AC 82 ms
76,740 KB
testcase_20 AC 82 ms
76,556 KB
testcase_21 AC 80 ms
76,644 KB
testcase_22 AC 79 ms
76,596 KB
testcase_23 AC 80 ms
76,660 KB
testcase_24 AC 81 ms
76,776 KB
testcase_25 AC 81 ms
76,704 KB
testcase_26 AC 80 ms
76,640 KB
testcase_27 AC 81 ms
76,780 KB
testcase_28 AC 68 ms
71,428 KB
testcase_29 AC 72 ms
71,160 KB
testcase_30 AC 71 ms
71,088 KB
testcase_31 AC 70 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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