結果
問題 | No.750 Frac #1 |
ユーザー |
![]() |
提出日時 | 2019-11-12 20:53:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 117 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-19 08:56:45 |
合計ジャッジ時間 | 2,149 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
n = int(input().strip()) lst = [] for i in range(n): A, B = input().strip().split(' ') A, B = int(A), int(B) lst.append([i, (A * 1.0) / (B * 1.0), str(A) + ' ' + str(B)]) lst = sorted(lst, key = lambda x: x[1], reverse=True) for i in lst: print(i[2])