結果

問題 No.750 Frac #1
ユーザー seiyu_kyoproseiyu_kyopro
提出日時 2021-11-23 02:27:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 10,472 KB
実行使用メモリ 9,828 KB
最終ジャッジ日時 2023-09-07 02:24:21
合計ジャッジ時間 3,600 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,636 KB
testcase_01 AC 30 ms
9,716 KB
testcase_02 WA -
testcase_03 AC 30 ms
9,664 KB
testcase_04 AC 29 ms
9,596 KB
testcase_05 AC 30 ms
9,620 KB
testcase_06 WA -
testcase_07 AC 30 ms
9,752 KB
testcase_08 AC 29 ms
9,596 KB
testcase_09 AC 30 ms
9,508 KB
testcase_10 AC 31 ms
9,624 KB
testcase_11 WA -
testcase_12 AC 30 ms
9,616 KB
testcase_13 AC 29 ms
9,508 KB
testcase_14 AC 30 ms
9,616 KB
testcase_15 AC 30 ms
9,796 KB
testcase_16 AC 30 ms
9,620 KB
testcase_17 AC 30 ms
9,716 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 29 ms
9,616 KB
testcase_21 AC 30 ms
9,600 KB
testcase_22 AC 30 ms
9,652 KB
testcase_23 AC 29 ms
9,600 KB
testcase_24 WA -
testcase_25 AC 30 ms
9,512 KB
testcase_26 WA -
testcase_27 AC 31 ms
9,800 KB
testcase_28 AC 30 ms
9,828 KB
testcase_29 AC 30 ms
9,708 KB
testcase_30 AC 30 ms
9,644 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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