結果

問題 No.1082 XORのXOR
ユーザー tyawanmusityawanmusi
提出日時 2020-01-28 23:11:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 202 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 8,396 KB
最終ジャッジ日時 2023-09-15 22:26:10
合計ジャッジ時間 50,276 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,916 KB
testcase_01 AC 15 ms
7,768 KB
testcase_02 AC 16 ms
7,804 KB
testcase_03 AC 1,917 ms
8,252 KB
testcase_04 AC 1,847 ms
8,160 KB
testcase_05 AC 1,878 ms
8,344 KB
testcase_06 AC 1,803 ms
8,228 KB
testcase_07 AC 1,807 ms
8,216 KB
testcase_08 AC 1,923 ms
8,116 KB
testcase_09 AC 1,932 ms
8,396 KB
testcase_10 AC 1,928 ms
8,284 KB
testcase_11 AC 1,817 ms
8,192 KB
testcase_12 AC 1,884 ms
8,272 KB
testcase_13 AC 1,940 ms
8,236 KB
testcase_14 AC 1,819 ms
8,236 KB
testcase_15 AC 1,830 ms
8,360 KB
testcase_16 AC 1,826 ms
8,356 KB
testcase_17 AC 1,838 ms
8,292 KB
testcase_18 AC 1,871 ms
8,184 KB
testcase_19 AC 1,889 ms
8,192 KB
testcase_20 AC 1,835 ms
8,160 KB
testcase_21 AC 1,946 ms
8,348 KB
testcase_22 TLE -
testcase_23 AC 1,910 ms
8,196 KB
testcase_24 AC 1,904 ms
8,140 KB
testcase_25 AC 1,906 ms
8,176 KB
testcase_26 AC 1,898 ms
8,268 KB
testcase_27 AC 1,964 ms
8,196 KB
testcase_28 AC 16 ms
7,740 KB
testcase_29 AC 15 ms
7,820 KB
testcase_30 AC 15 ms
7,788 KB
testcase_31 AC 16 ms
7,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# writer解
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    for j in range(n):
        if i == j:
            continue
        ans = max(ans, a[i] ^ a[j])
print(ans)
0