Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
38955 奚晨瑞 鸡尾酒疗法 C++ Accepted 1 MS 252 KB 380 2024-01-29 08:22:41

Tests(1/1):


#include<iostream> using namespace std; int main() { int n; cin>>n; int a1,b1; cin>>a1>>b1; float c1=1.0*b1/a1; for(int i=1;i<n;i++){ int a,b; cin>>a>>b; float c=1.0*b/a; float cn=c1-c; if(cn>0.05){ cout<<"worse"<<endl; } else if(cn<-0.05){ cout<<"better"<<endl; } else{ cout<<"same"<<endl; } } return 0; }


Judgement Protocol: