結果

問題 No.1082 XORのXOR
ユーザー ak0327ak0327
提出日時 2020-10-10 20:29:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,644 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 993 ms
コンパイル使用メモリ 10,440 KB
実行使用メモリ 8,404 KB
最終ジャッジ日時 2023-09-27 22:38:11
合計ジャッジ時間 41,645 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,948 KB
testcase_01 AC 13 ms
7,740 KB
testcase_02 AC 13 ms
7,784 KB
testcase_03 AC 1,512 ms
8,324 KB
testcase_04 AC 1,598 ms
8,376 KB
testcase_05 AC 1,461 ms
8,220 KB
testcase_06 AC 1,563 ms
8,252 KB
testcase_07 AC 1,587 ms
8,404 KB
testcase_08 AC 1,560 ms
8,236 KB
testcase_09 AC 1,532 ms
8,308 KB
testcase_10 AC 1,470 ms
8,372 KB
testcase_11 AC 1,482 ms
8,376 KB
testcase_12 AC 1,469 ms
8,240 KB
testcase_13 AC 1,553 ms
8,308 KB
testcase_14 AC 1,532 ms
8,296 KB
testcase_15 AC 1,644 ms
8,220 KB
testcase_16 AC 1,487 ms
8,348 KB
testcase_17 AC 1,507 ms
8,232 KB
testcase_18 AC 1,605 ms
8,180 KB
testcase_19 AC 1,573 ms
8,372 KB
testcase_20 AC 1,548 ms
8,348 KB
testcase_21 AC 1,530 ms
8,176 KB
testcase_22 AC 1,511 ms
8,376 KB
testcase_23 AC 1,589 ms
8,240 KB
testcase_24 AC 1,502 ms
8,376 KB
testcase_25 AC 1,593 ms
8,380 KB
testcase_26 AC 1,549 ms
8,236 KB
testcase_27 AC 1,477 ms
8,232 KB
testcase_28 AC 13 ms
7,804 KB
testcase_29 AC 12 ms
7,992 KB
testcase_30 AC 13 ms
7,820 KB
testcase_31 AC 14 ms
7,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

print(ans)
0