2 solutions
- 1
Information
- ID
- 355
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 4
- Tags
- # Submissions
- 107
- Accepted
- 47
- Uploaded By
#include <bits/stdc++.h>
using namespace std;
#define int long long
int n, id;
double maxx;
signed main() {
cin >> n;
for (int i = 1; i <= n; i++) {
double x, y;
cin >> x >> y;
if (y / x > maxx) {
maxx = y / x;
id = i;
}
}
cout << id;
return 0;
}
给本龙点些赞吧 别点差评了