結果
問題 | No.750 Frac #1 |
ユーザー |
|
提出日時 | 2019-04-30 18:28:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 18:25:10 |
合計ジャッジ時間 | 2,679 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
n=int(input());a=[] for _ in '1'*n: a.append(list(map(int,input().split()))) for _ in range(n): a[_].append(a[_][0]/a[_][1]) a=sorted(a,key=lambda x:x[2],reverse=True) for _ in range(n): print(a[_][0],a[_][1])