結果
問題 |
No.750 Frac #1
|
ユーザー |
|
提出日時 | 2019-07-11 23:04:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-08 18:59:53 |
合計ジャッジ時間 | 2,224 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 4 WA * 26 |
ソースコード
n = int(input()) lst_1 = [] for _ in range(n): x,y = map(int,input().split()) lst_1 += [[x,y,x/y]] for i in range(n): for j in range(0,n-i-1,1): if lst_1[j][2] > lst_1[j+1][2]: lst_1[j] , lst_1[j+1] = lst_1[j+1] , lst_1[j] for i in range(n): print(lst_1[i][0],lst_1[i][1])