結果
問題 | No.909 たぴの配置 |
ユーザー |
|
提出日時 | 2019-10-18 21:34:39 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 471 ms / 3,000 ms |
コード長 | 167 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 35,968 KB |
最終ジャッジ日時 | 2024-06-25 15:08:47 |
合計ジャッジ時間 | 8,257 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n Syntax OK
ソースコード
def lscan; gets.split.map(&:to_i); end n = gets.to_i xy = [lscan,lscan].transpose mx = xy.map{|x,y| x+y}.min p mx p 0 puts xy.map{|x,y| [0, [mx-y, x].min].max} p mx