結果

問題 No.750 Frac #1
ユーザー matriematrie
提出日時 2020-11-29 09:33:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 140 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 29,748 KB
最終ジャッジ日時 2023-10-11 02:21:14
合計ジャッジ時間 7,115 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
29,708 KB
testcase_01 AC 135 ms
29,572 KB
testcase_02 AC 138 ms
29,624 KB
testcase_03 AC 133 ms
29,588 KB
testcase_04 AC 134 ms
29,592 KB
testcase_05 AC 133 ms
29,700 KB
testcase_06 AC 132 ms
29,660 KB
testcase_07 AC 133 ms
29,536 KB
testcase_08 AC 132 ms
29,592 KB
testcase_09 AC 134 ms
29,628 KB
testcase_10 AC 134 ms
29,580 KB
testcase_11 AC 132 ms
29,704 KB
testcase_12 AC 135 ms
29,708 KB
testcase_13 AC 135 ms
29,592 KB
testcase_14 AC 136 ms
29,748 KB
testcase_15 AC 135 ms
29,644 KB
testcase_16 AC 134 ms
29,596 KB
testcase_17 AC 136 ms
29,564 KB
testcase_18 AC 138 ms
29,708 KB
testcase_19 AC 133 ms
29,648 KB
testcase_20 AC 133 ms
29,552 KB
testcase_21 AC 136 ms
29,656 KB
testcase_22 AC 135 ms
29,748 KB
testcase_23 AC 136 ms
29,664 KB
testcase_24 AC 137 ms
29,716 KB
testcase_25 AC 135 ms
29,604 KB
testcase_26 AC 139 ms
29,576 KB
testcase_27 AC 140 ms
29,696 KB
testcase_28 AC 137 ms
29,516 KB
testcase_29 AC 137 ms
29,716 KB
testcase_30 AC 139 ms
29,700 KB
testcase_31 AC 136 ms
29,572 KB
testcase_32 AC 140 ms
29,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
n = int(input())
a = [0]*n; b = [0]*n; c = [0]*n
for i in range(n):
	a[i],b[i]=map(int,input().split())
	c[i]=a[i]/b[i]
for i in np.argsort(c)[::-1]:
	print(a[i],b[i])
0