結果
問題 |
No.1860 Magnets
|
ユーザー |
|
提出日時 | 2022-04-29 11:05:04 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 102 bytes |
コンパイル時間 | 35 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-06-28 18:26:26 |
合計ジャッジ時間 | 3,784 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 28 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - biggest_item Syntax OK
ソースコード
biggest_item = gets.split.map(&:to_i).sort{|x, y| y.to_i <=> x.to_i }.first puts buggest_item * 2 - 1