結果

問題 No.1082 XORのXOR
ユーザー gemmarogemmaro
提出日時 2020-11-09 09:51:37
言語 Ruby
(3.3.0)
結果
AC  
実行時間 480 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 11,348 KB
実行使用メモリ 31,432 KB
最終ジャッジ日時 2023-09-29 21:59:02
合計ジャッジ時間 15,138 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,028 KB
testcase_01 AC 76 ms
15,284 KB
testcase_02 AC 76 ms
15,088 KB
testcase_03 AC 472 ms
31,044 KB
testcase_04 AC 473 ms
31,168 KB
testcase_05 AC 474 ms
31,208 KB
testcase_06 AC 474 ms
31,432 KB
testcase_07 AC 475 ms
31,188 KB
testcase_08 AC 472 ms
31,156 KB
testcase_09 AC 473 ms
30,956 KB
testcase_10 AC 472 ms
31,120 KB
testcase_11 AC 475 ms
31,016 KB
testcase_12 AC 477 ms
31,052 KB
testcase_13 AC 475 ms
31,028 KB
testcase_14 AC 475 ms
30,948 KB
testcase_15 AC 476 ms
31,352 KB
testcase_16 AC 474 ms
30,948 KB
testcase_17 AC 477 ms
30,884 KB
testcase_18 AC 474 ms
30,992 KB
testcase_19 AC 474 ms
30,904 KB
testcase_20 AC 474 ms
31,040 KB
testcase_21 AC 476 ms
31,000 KB
testcase_22 AC 480 ms
31,160 KB
testcase_23 AC 478 ms
31,164 KB
testcase_24 AC 474 ms
31,148 KB
testcase_25 AC 477 ms
31,216 KB
testcase_26 AC 476 ms
31,196 KB
testcase_27 AC 477 ms
31,408 KB
testcase_28 AC 76 ms
15,016 KB
testcase_29 AC 76 ms
15,348 KB
testcase_30 AC 76 ms
15,144 KB
testcase_31 AC 77 ms
15,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

class Array
  def solve
    combination(2).map { |a, b| a ^ b }.max
  end
end

N = gets.to_i
A = gets.split.map(&:to_i)

puts A.solve
0