結果

問題 No.1082 XORのXOR
ユーザー koba-e964koba-e964
提出日時 2021-09-21 23:46:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 76,812 KB
最終ジャッジ日時 2023-09-17 14:06:34
合計ジャッジ時間 4,858 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,188 KB
testcase_01 AC 73 ms
71,344 KB
testcase_02 AC 72 ms
71,508 KB
testcase_03 AC 84 ms
76,640 KB
testcase_04 AC 88 ms
76,632 KB
testcase_05 AC 85 ms
76,604 KB
testcase_06 AC 87 ms
76,468 KB
testcase_07 AC 86 ms
76,660 KB
testcase_08 AC 85 ms
76,536 KB
testcase_09 AC 85 ms
76,712 KB
testcase_10 AC 86 ms
76,300 KB
testcase_11 AC 85 ms
76,648 KB
testcase_12 AC 86 ms
76,712 KB
testcase_13 AC 88 ms
76,612 KB
testcase_14 AC 85 ms
76,648 KB
testcase_15 AC 86 ms
76,544 KB
testcase_16 AC 84 ms
76,300 KB
testcase_17 AC 84 ms
76,812 KB
testcase_18 AC 85 ms
76,644 KB
testcase_19 AC 85 ms
76,708 KB
testcase_20 AC 85 ms
76,540 KB
testcase_21 AC 84 ms
76,716 KB
testcase_22 AC 85 ms
76,624 KB
testcase_23 AC 85 ms
76,640 KB
testcase_24 AC 84 ms
76,540 KB
testcase_25 AC 84 ms
76,644 KB
testcase_26 AC 85 ms
76,632 KB
testcase_27 AC 85 ms
76,372 KB
testcase_28 AC 73 ms
71,404 KB
testcase_29 AC 72 ms
71,516 KB
testcase_30 AC 72 ms
71,440 KB
testcase_31 AC 73 ms
71,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

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