結果

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

ソースコード

diff #

# coding utf-8

n = int(input())
ans = {}
for i in range(n):
    sentence = input()
    bunsi = int(sentence.split(" ")[0])
    bunbo = int(sentence.split(" ")[1])
    val = bunshi / bunbo
    ans[sentence] = val

for k, v in sorted(ans.items(), key=lambda x: -x[1]):
    print(k)
0