結果

問題 No.1082 XORのXOR
ユーザー 双六双六
提出日時 2020-07-24 20:51:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 77,836 KB
最終ジャッジ日時 2023-09-08 02:32:30
合計ジャッジ時間 4,844 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,692 KB
testcase_01 AC 91 ms
71,660 KB
testcase_02 AC 91 ms
71,760 KB
testcase_03 AC 104 ms
77,712 KB
testcase_04 AC 105 ms
77,640 KB
testcase_05 AC 104 ms
77,600 KB
testcase_06 AC 105 ms
77,564 KB
testcase_07 AC 103 ms
77,836 KB
testcase_08 AC 104 ms
77,364 KB
testcase_09 AC 104 ms
77,676 KB
testcase_10 AC 104 ms
77,540 KB
testcase_11 AC 105 ms
77,632 KB
testcase_12 AC 104 ms
77,676 KB
testcase_13 AC 104 ms
77,552 KB
testcase_14 AC 104 ms
77,540 KB
testcase_15 AC 105 ms
77,712 KB
testcase_16 AC 103 ms
77,568 KB
testcase_17 AC 102 ms
77,600 KB
testcase_18 AC 103 ms
77,368 KB
testcase_19 AC 103 ms
77,568 KB
testcase_20 AC 103 ms
77,272 KB
testcase_21 AC 101 ms
77,284 KB
testcase_22 AC 104 ms
77,660 KB
testcase_23 AC 105 ms
77,368 KB
testcase_24 AC 104 ms
77,748 KB
testcase_25 AC 102 ms
77,576 KB
testcase_26 AC 104 ms
77,272 KB
testcase_27 AC 103 ms
77,536 KB
testcase_28 AC 91 ms
71,708 KB
testcase_29 AC 89 ms
71,632 KB
testcase_30 AC 91 ms
71,480 KB
testcase_31 AC 94 ms
71,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	A = getlist()
	ans = 0
	for i in range(N):
		for j in range(i + 1, N):
			ans = max(ans, A[i]^A[j])

	print(ans)
	

if __name__ == '__main__':
	main()
0