結果

問題 No.750 Frac #1
ユーザー netyo715
提出日時 2021-07-15 14:56:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 623 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-04 15:07:19
合計ジャッジ時間 2,303 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = [list(map(int, input().split())) for _ in range(N)]
z = 2*3*4*5*6*7*8*9
y = [[a[0]*z//a[1], i] for i, a in enumerate(x)]
y.sort(reverse=True)
for i in range(N):
    print(*x[y[i][1]])
0