Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
40247 wuxinyue 鸡尾酒疗法 C++ Accepted 1 MS 252 KB 436 2024-02-08 18:59:47

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i=1; double a,b; cin>>a; cin>>b; double x=(b/a)*100; while(i<=n-1){ double c,d; cin>>c; cin>>d; double y=(d/c)*100; if (y-x>5){ cout<<"better"<<endl; } else if (x-y>5){ cout<<"worse"<<endl; } else{ cout<<"same"<<endl; } i++; } return 0; }


Judgement Protocol: