結果

問題 No.750 Frac #1
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-17 17:15:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 254 bytes
コンパイル時間 794 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 71,340 KB
最終ジャッジ日時 2023-09-12 04:25:11
合計ジャッジ時間 5,307 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,952 KB
testcase_01 AC 69 ms
71,204 KB
testcase_02 AC 68 ms
71,084 KB
testcase_03 AC 70 ms
71,012 KB
testcase_04 AC 69 ms
71,260 KB
testcase_05 AC 68 ms
70,876 KB
testcase_06 AC 68 ms
70,840 KB
testcase_07 AC 69 ms
71,232 KB
testcase_08 AC 69 ms
71,204 KB
testcase_09 AC 69 ms
71,260 KB
testcase_10 AC 70 ms
71,208 KB
testcase_11 AC 70 ms
71,016 KB
testcase_12 AC 68 ms
71,340 KB
testcase_13 AC 70 ms
71,016 KB
testcase_14 AC 69 ms
70,840 KB
testcase_15 AC 69 ms
70,716 KB
testcase_16 AC 69 ms
71,092 KB
testcase_17 AC 68 ms
71,224 KB
testcase_18 AC 67 ms
70,948 KB
testcase_19 AC 67 ms
71,204 KB
testcase_20 AC 70 ms
71,012 KB
testcase_21 AC 68 ms
71,312 KB
testcase_22 AC 68 ms
71,024 KB
testcase_23 AC 68 ms
71,256 KB
testcase_24 AC 69 ms
70,920 KB
testcase_25 AC 68 ms
71,092 KB
testcase_26 AC 69 ms
70,912 KB
testcase_27 AC 68 ms
70,952 KB
testcase_28 AC 67 ms
71,016 KB
testcase_29 AC 68 ms
70,776 KB
testcase_30 AC 68 ms
71,312 KB
testcase_31 AC 66 ms
71,016 KB
testcase_32 AC 68 ms
71,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
AB = [list(map(int,input().split())) for _ in range(n)]
ans = [[i,AB[i][0] / AB[i][1]] for i in range(n)]
sorted_AB = sorted(ans, key=lambda x:x[1],reverse=True)
for i in range(n):
    print(AB[sorted_AB[i][0]][0],AB[sorted_AB[i][0]][1])
0