結果

問題 No.750 Frac #1
ユーザー shamio
提出日時 2020-02-01 08:41:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 193 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-18 19:43:32
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int, input().split())) for _ in range(n)]

abc = [[a, b, a / b] for a, b in ab]

abc.sort(key=lambda x: x[2], reverse=True)

for a, b, c in abc:
    print(a, b)
0