結果
| 問題 | 
                            No.750 Frac #1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nadare
                         | 
                    
| 提出日時 | 2018-11-09 22:23:35 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 31 ms / 1,000 ms | 
| コード長 | 234 bytes | 
| コンパイル時間 | 113 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-21 06:14:37 | 
| 合計ジャッジ時間 | 2,008 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
# -*- coding: utf-8 -*-
def inpl(): return list(map(int, input().split()))
N = int(input())
R = []
for _ in range(N):
    a, b = inpl()
    R.append([a/b, a, b])
for r, a, b in reversed(sorted(R, key=lambda x: x[0])):
    print(a, b)
            
            
            
        
            
nadare