結果
| 問題 | No.750 Frac #1 |
| コンテスト | |
| ユーザー |
monburan_0401
|
| 提出日時 | 2019-05-01 13:22:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 280 bytes |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-31 12:19:11 |
| 合計ジャッジ時間 | 2,450 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
# 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 = bunsi / bunbo
ans[val] = sentence
for k, v in sorted(ans.items(), key=lambda x: -x[0]):
print(v)
monburan_0401