不加高精60,加了90,第六个点过不了,求助!大佬们帮忙看看思路哪里有问题
#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read(){
int x = 0 , f = 1 ; char c = getchar() ;
while( c < '0' || c > '9' ) { if( c == '-' ) f = -1 ; c = getchar() ; }
while( c >= '0' && c <= '9' ) { x = x * 10 + c - '0' ; c = getchar() ; }
return x * f ;
}
int n;
signed main(){
n = read();
int sum = read(), bi = read();
int ma = 0;
for(int i = 1; i <= n; i++){
int a = read(), b = read();
sum *= a;
ma = max(ma, a*b);
}
cout << max(1, sum/ma);
}
