結果
| 問題 | 
                            No.750 Frac #1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             iad_2889
                         | 
                    
| 提出日時 | 2019-04-27 13:57:37 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 31 ms / 1,000 ms | 
| コード長 | 159 bytes | 
| コンパイル時間 | 444 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-27 20:08:44 | 
| 合計ジャッジ時間 | 2,258 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
N = int(input())
fracs = [tuple(map(int,input().split())) for x in range(N)]
fracs.sort(key=lambda x:x[0] / x[1],reverse=True)
for x,y in fracs:
    print(x,y)
            
            
            
        
            
iad_2889