結果

問題 No.750 Frac #1
ユーザー mlihua09
提出日時 2020-08-28 19:38:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 190 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 53,688 KB
最終ジャッジ日時 2024-11-13 23:40:53
合計ジャッジ時間 2,800 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #


n = int(input())

AB = []

for i in range(n):
    
    a, b = map(int, input().split())
    
    AB += [[a / b, a, b]]
    
AB.sort()

AB.reverse()

for _, a, b in AB:
    
    print(a, b)
0