| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71170 | sh25_zhangjiajia | 鸡尾酒疗法 | C++ | 解答错误 | 0 MS | 240 KB | 514 | 2025-10-24 15:32:48 |
#include <bits/stdc++.h> using namespace std; int main() { int n; double a,b,c,ai,bi,ci; cin >>a>>b; c=a/b; for(int i = 1;i<n;i++) { cin >>ai>>bi; ci=ai/bi; if(c==ci) { cout <<"same"<<endl; } if(c>ci) { cout <<"worse"<<endl; } if(c<ci) { cout <<"better"<<endl; } } return 0; }