😕 #include<cstdio> using namespace std; double maxx; int maxi,n; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ double t,k; scanf("%lf%lf",&t,&k); if(k/t>maxx){ maxx=k/t; maxi=i; } } printf("%d",maxi); return 0; }

2 comments

  • 1

Information

ID
241
Time
1000ms
Memory
256MiB
Difficulty
6
Tags
# Submissions
139
Accepted
38
Uploaded By