結果
| 問題 | 
                            No.750 Frac #1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             wonda_t_coffee
                         | 
                    
| 提出日時 | 2020-01-30 22:37:36 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 182 bytes | 
| コンパイル時間 | 207 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-09-16 03:59:21 | 
| 合計ジャッジ時間 | 4,287 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 22 WA * 8 | 
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.to_i
a = []
n.times do
  b, c = gets.chomp.split.map(&:to_i)
  a << Rational(b, c)
end
a = a.sort.reverse
a.each do |ai|
  puts "#{ai.numerator} #{ai.denominator}"
end
            
            
            
        
            
wonda_t_coffee