結果

問題 No.851 テストケース
ユーザー pekempey
提出日時 2019-07-26 21:23:46
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 761 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-07-02 06:34:04
合計ジャッジ時間 4,095 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 17 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
s = gets.chomp
if s.include? ' '
  puts '"assert"'
  exit
end

a = [s.to_i]
2.times do
  a << gets.to_i
end

puts [a[0] + a[1], a[0] + a[2], a[1] + a[2]].sort[1]
0