結果

問題 No.750 Frac #1
ユーザー はむ吉🐹
提出日時 2018-11-09 21:24:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-11-21 05:30:21
合計ジャッジ時間 2,254 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 22 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import fractions


def main():
    n = int(input())
    fs = [fractions.Fraction(*(int(c) for c in input().split())) for _ in range(n)]
    fs.sort(reverse=True)
    for f in fs:
        print(f.numerator, f.denominator)


if __name__ == '__main__':
    main()
0