| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70828 | sh25_wangsj | 鸡尾酒疗法 | C++ | 通过 | 0 MS | 248 KB | 470 | 2025-10-21 19:19:37 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,xy,xz; cin>>a; int y,z; double b=0,xb=0; cin>>xy>>xz; xb=xz*1.0/xy; for(int i=1;i<a;i=i+1){ cin>>y>>z; b=z*1.0/y; if(b-xb>0.05) { cout<<"better"<<endl; } else if(b-xb<-0.05){ cout<<"worse"<<endl; } else{ cout<<"same"<<endl; } } return 0; }