#include #include using namespace std; struct bunsu{ int ue; int sita; }; bool cmp(const bunsu &a,const bunsu &b){ return a.ue/(a.sita*1.0)>b.ue/(b.sita*1.0); } int main(){ int n; cin>>n; struct bunsu* bun=new struct bunsu[n]; for (int x=0;x>bun[x].ue>>bun[x].sita; } sort(bun,bun+n,cmp); for(int x=0;x