結果

問題 No.750 Frac #1
ユーザー TakoKurageTakoKurage
提出日時 2020-01-17 08:30:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 9,896 KB
最終ジャッジ日時 2023-09-07 19:11:12
合計ジャッジ時間 3,439 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,804 KB
testcase_01 AC 27 ms
9,628 KB
testcase_02 WA -
testcase_03 AC 27 ms
9,676 KB
testcase_04 AC 28 ms
9,640 KB
testcase_05 AC 28 ms
9,704 KB
testcase_06 WA -
testcase_07 AC 27 ms
9,648 KB
testcase_08 AC 28 ms
9,584 KB
testcase_09 AC 27 ms
9,628 KB
testcase_10 AC 28 ms
9,752 KB
testcase_11 WA -
testcase_12 AC 27 ms
9,632 KB
testcase_13 AC 27 ms
9,808 KB
testcase_14 AC 28 ms
9,656 KB
testcase_15 AC 28 ms
9,716 KB
testcase_16 AC 28 ms
9,680 KB
testcase_17 AC 28 ms
9,884 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 28 ms
9,632 KB
testcase_21 AC 27 ms
9,552 KB
testcase_22 AC 27 ms
9,576 KB
testcase_23 AC 27 ms
9,668 KB
testcase_24 WA -
testcase_25 AC 28 ms
9,768 KB
testcase_26 WA -
testcase_27 AC 28 ms
9,860 KB
testcase_28 AC 27 ms
9,716 KB
testcase_29 AC 27 ms
9,804 KB
testcase_30 AC 27 ms
9,852 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction

N, *AB = map(int, open(0).read().split())

for f in reversed(sorted(Fraction(a, b) for a, b in zip(*[iter(AB)] * 2))):
    print(f.numerator, f.denominator)
0