結果

問題 No.750 Frac #1
コンテスト
ユーザー seiyu_kyopro
提出日時 2021-11-23 02:27:42
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
WA  
実行時間 -
コード長 231 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 245 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-06-24 21:05:55
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 22 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from fractions import Fraction

n = int(input())

fracs = []

for _ in range(n):
    a, b = map(int, input().split())
    fracs.append(Fraction(a, b))

fracs.sort(reverse=True)

for t in fracs:
    print(t.numerator, t.denominator)
0