結果

問題 No.1082 XORのXOR
ユーザー neterukunneterukun
提出日時 2020-06-20 11:57:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 76,756 KB
最終ジャッジ日時 2023-09-16 17:07:02
合計ジャッジ時間 3,989 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,096 KB
testcase_01 AC 67 ms
71,048 KB
testcase_02 AC 67 ms
71,160 KB
testcase_03 AC 82 ms
76,464 KB
testcase_04 AC 86 ms
76,424 KB
testcase_05 AC 81 ms
76,428 KB
testcase_06 AC 85 ms
76,176 KB
testcase_07 AC 83 ms
76,176 KB
testcase_08 AC 83 ms
76,316 KB
testcase_09 AC 81 ms
76,584 KB
testcase_10 AC 82 ms
76,320 KB
testcase_11 AC 84 ms
76,176 KB
testcase_12 AC 83 ms
76,176 KB
testcase_13 AC 82 ms
76,576 KB
testcase_14 AC 84 ms
76,464 KB
testcase_15 AC 85 ms
76,580 KB
testcase_16 AC 83 ms
76,184 KB
testcase_17 AC 82 ms
76,312 KB
testcase_18 AC 81 ms
76,356 KB
testcase_19 AC 85 ms
76,320 KB
testcase_20 AC 83 ms
76,512 KB
testcase_21 AC 80 ms
76,612 KB
testcase_22 AC 79 ms
76,312 KB
testcase_23 AC 82 ms
76,756 KB
testcase_24 AC 79 ms
76,448 KB
testcase_25 AC 80 ms
76,180 KB
testcase_26 AC 82 ms
76,424 KB
testcase_27 AC 82 ms
76,308 KB
testcase_28 AC 65 ms
71,304 KB
testcase_29 AC 66 ms
71,328 KB
testcase_30 AC 69 ms
71,280 KB
testcase_31 AC 69 ms
70,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))


ans = 0
for i in range(n):
    for j in range(n):
        ans = max(ans, a[i] ^ a[j])

print(ans)
0