2 solutions

  • -1
    @ 2025-7-12 9:05:29
    #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;
    }
    
    • @ 2025-7-18 10:39:25

      给本龙点些赞吧 别点差评了

Information

ID
355
Time
1000ms
Memory
64MiB
Difficulty
4
Tags
# Submissions
107
Accepted
47
Uploaded By