| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83678 | bnu_fanmeijie | 鸡尾酒疗法 | C++ | 通过 | 0 MS | 248 KB | 546 | 2026-01-30 16:27:43 |
#include<bits/stdc++.h> using namespace std; int main() { double n,tot=0,eff=0,a,t; cin>>n; for(int i=0;i<n;i++) //n组 { cin>>tot>>eff; if(i==0) { a=(eff/tot)*100; continue; }//实际是n-1组的循环,第一组i=0,是输入对照组 t=(eff/tot)*100; if(t-a>5) cout<<"better"<<endl; else if(a-t>5) cout<<"worse"<<endl; else cout<<"same"<<endl; } return 0; }