#include using namespace std; typedef pair P; bool cmp(P a,P b){ return a.first*b.second>a.second*b.first; } signed main(){ int n;cin>>n; vector

a(n); for(int i=0;i>u>>v;a[i]=P(u,v);} sort(a.begin(),a.end(),cmp); for(int i=0;i