結果

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

ソースコード

diff #

# -*- coding: utf-8 -*-

n = int(input())
ab = [[0,0,0] for i in range(n)]
for i in range(n):
    temp = list(map(int,input().split()))
    ab[i][1] = temp[0]
    ab[i][2] = temp[1]
    ab[i][0] = temp[0] / temp[1]
ab.sort()
ab.reverse()
for i in range(n):
    print(ab[i][1],end = " ")
    print(ab[i][2])
0