| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71158 | sh25_zhangjiajia | 鸡尾酒疗法 | C++ | 编译错误 | 0 MS | 0 KB | 554 | 2025-10-24 15:23:06 |
#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; }