#include using namespace std; struct bunsu{ double bunbo; double bunshi; double atai; }; int main(){ int n; bunsu b[10]; cin >> n; for(int i=0;i> b[i].bunshi >> b[i].bunbo; b[i].atai = b[i].bunshi / b[i].bunbo; } sort(b,b+n, [](const bunsu &x, const bunsu &y){ return x.atai > y.atai ;}); for(int i=0; i