結果

問題 No.1082 XORのXOR
ユーザー trineutrontrineutron
提出日時 2020-06-20 09:21:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 252 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 86,388 KB
最終ジャッジ日時 2023-09-16 16:59:22
合計ジャッジ時間 7,589 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 251 ms
85,792 KB
testcase_04 AC 251 ms
86,124 KB
testcase_05 AC 251 ms
86,264 KB
testcase_06 AC 248 ms
86,124 KB
testcase_07 AC 250 ms
86,324 KB
testcase_08 AC 248 ms
86,000 KB
testcase_09 AC 250 ms
86,132 KB
testcase_10 AC 249 ms
85,876 KB
testcase_11 AC 249 ms
85,976 KB
testcase_12 AC 250 ms
86,284 KB
testcase_13 AC 250 ms
85,960 KB
testcase_14 AC 252 ms
86,324 KB
testcase_15 AC 251 ms
86,300 KB
testcase_16 AC 250 ms
86,224 KB
testcase_17 AC 249 ms
86,120 KB
testcase_18 AC 250 ms
86,180 KB
testcase_19 AC 250 ms
85,600 KB
testcase_20 AC 252 ms
86,008 KB
testcase_21 AC 251 ms
85,848 KB
testcase_22 AC 251 ms
86,372 KB
testcase_23 AC 250 ms
86,092 KB
testcase_24 AC 250 ms
86,316 KB
testcase_25 AC 250 ms
86,264 KB
testcase_26 AC 251 ms
86,316 KB
testcase_27 AC 251 ms
86,388 KB
testcase_28 AC 16 ms
7,764 KB
testcase_29 AC 16 ms
7,784 KB
testcase_30 AC 15 ms
7,796 KB
testcase_31 AC 16 ms
7,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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