Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
40103 wuxinyue 鸡尾酒疗法 C++ Compile Error 0 MS 0 KB 413 2024-02-07 15:59:16

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i=1; int a,b; cin>>a>>b; int x==(a/b+a%b)*100; while(i<=n){ int c,d; cin>>c>>d; int y==(c/d+c%d)*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: