結果

問題 No.851 テストケース
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-09 00:11:22
言語 Ruby
(3.2.2)
結果
AC  
実行時間 81 ms / 3,153 ms
コード長 203 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 11,212 KB
実行使用メモリ 15,324 KB
最終ジャッジ日時 2023-07-24 10:10:33
合計ジャッジ時間 2,878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,144 KB
testcase_01 AC 73 ms
15,204 KB
testcase_02 AC 73 ms
15,028 KB
testcase_03 AC 74 ms
15,220 KB
testcase_04 AC 74 ms
15,024 KB
testcase_05 AC 75 ms
15,252 KB
testcase_06 AC 72 ms
15,076 KB
testcase_07 AC 70 ms
15,132 KB
testcase_08 AC 70 ms
15,208 KB
testcase_09 AC 72 ms
15,128 KB
testcase_10 AC 72 ms
15,124 KB
testcase_11 AC 74 ms
15,208 KB
testcase_12 AC 72 ms
15,292 KB
testcase_13 AC 73 ms
15,280 KB
testcase_14 AC 74 ms
15,324 KB
testcase_15 AC 78 ms
15,120 KB
testcase_16 AC 81 ms
15,200 KB
testcase_17 AC 77 ms
15,120 KB
testcase_18 AC 71 ms
15,080 KB
testcase_19 AC 71 ms
15,308 KB
testcase_20 AC 71 ms
15,128 KB
testcase_21 AC 74 ms
15,024 KB
testcase_22 AC 76 ms
15,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
a1 = gets.chomp

if a1.include?(' ')
  puts "\"assert\""
  exit
end

a1 = a1.to_i
a2 = gets.chomp.to_i
a3 = gets.chomp.to_i
puts [a1, a2, a3].combination(2).map{|c| c[0] + c[1]}.uniq.sort.reverse[1]
0