| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70489 | sh25_ganzy | 鸡尾酒疗法 | C++ | 通过 | 0 MS | 248 KB | 489 | 2025-10-17 19:48:16 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; float a[n],b[n],r0,r; for(int i=0;i<n;i++){ cin>>a[i]>>b[i]; if(!i){ r0=b[i]/a[i]; }else{ r=b[i]/a[i]; if(r-r0>0.05){ cout<<"better"; }else if(r-r0<-0.05){ cout<<"worse"; }else{ cout<<"same"; } cout<<endl; } } }