結果

問題 No.750 Frac #1
ユーザー はむ吉🐹はむ吉🐹
提出日時 2018-11-09 21:24:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 9,848 KB
最終ジャッジ日時 2023-08-13 11:07:25
合計ジャッジ時間 2,695 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,752 KB
testcase_01 AC 29 ms
9,636 KB
testcase_02 WA -
testcase_03 AC 29 ms
9,684 KB
testcase_04 AC 29 ms
9,644 KB
testcase_05 AC 29 ms
9,708 KB
testcase_06 WA -
testcase_07 AC 30 ms
9,644 KB
testcase_08 AC 30 ms
9,468 KB
testcase_09 AC 29 ms
9,756 KB
testcase_10 AC 29 ms
9,680 KB
testcase_11 WA -
testcase_12 AC 30 ms
9,624 KB
testcase_13 AC 30 ms
9,672 KB
testcase_14 AC 29 ms
9,648 KB
testcase_15 AC 30 ms
9,636 KB
testcase_16 AC 30 ms
9,596 KB
testcase_17 AC 31 ms
9,576 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 29 ms
9,640 KB
testcase_21 AC 29 ms
9,700 KB
testcase_22 AC 30 ms
9,640 KB
testcase_23 AC 29 ms
9,780 KB
testcase_24 WA -
testcase_25 AC 29 ms
9,632 KB
testcase_26 WA -
testcase_27 AC 29 ms
9,584 KB
testcase_28 AC 29 ms
9,604 KB
testcase_29 AC 29 ms
9,732 KB
testcase_30 AC 29 ms
9,624 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

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