#include <bits/stdc++.h>
using namespace std;
const int N = 10010;
int n, a, b, t1, t2;
int mx = 2e9, mn = 0;
int main(){
cin >> n;
while(n--){
cin >> a >> b;
int t1 = a / b, t2 = a / (b + 1);
mx = min(t1, mx), mn = max(t2, mn);
}
cout << mn + 1 << " " << mx << endl;
return 0;
}
蓝桥杯 2023 C++省 B 冶炼金属
于 2024-03-05 20:59:33 首次发布