#include #include using namespace std; #define ll long long #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define repeat(i,s,n) for(int (i)=s; (i)<(n); (i)++) #define revrep(i,n) for(int (i)=(n)-1;i>=0; i--) int main() { cin.tie(0); ios::sync_with_stdio(false); cout<::max_digits10); int n; cin>>n; vector> ab(n); rep(i,n) { int a,b; cin>>a>>b; ab[i]=make_pair(a,b); } rep(i,n) { for(int j=n-1; j>=i+1; j--) {//a1/b1 a1*b2