提交时间:2025-10-24 15:23:06
运行 ID: 71158
#include <bits/stdc++.h> using namespace std; int main() { int n; double a[i],b[i],c[i]; for(int i = 1;i<=n;i++) { cin >>a[i]>>b[i]; c[i]=a[i]/b[i]; } for(int i = 2;i<=n;i++) { if(c[1]==c[i]) { cout <<"same"<<endl; } if(c[1]>c[i]) { cout <<"worse"<<endl; } if(c[1]<c[i]) { cout <<"better"<<endl; } } return 0; }