- 练53.2 小明做题
题解
- 2024-5-26 14:50:16 @
😕 #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
-
yeyouchen LV 6 @ 2024-5-26 15:07:54
man
-
2024-5-26 14:51:05@
👍
- 1
Information
- ID
- 241
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 137
- Accepted
- 37
- Uploaded By