turn_line @ 2024-10-14 12:39:50
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin>>n;
for(int i=1;i<=n;i++)
{
double x,y;
cin>>x>>y;
if(y-x>x*0.05)
{
cout<<"better"<<endl;
}
if(x-y>y*0.05)
{
cout<<"worse"<<endl;
}
else
{
cout<<"same"<<endl;
}
}
return 0;
}
by IS_7_130_zcn @ 2024-10-14 13:09:02
@turn_line 你对这题理解有问题啊,输入的是病例总数和治疗成功地人数,不是成功率,不然怎么会有125%治疗成功率
by codingwen @ 2024-10-20 17:36:25
考古
by codingwen @ 2024-10-20 21:32:38
@turn_line