零分,求助
查看原帖
零分,求助
1443779
turn_line楼主2024/10/14 12:39
#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;
}
2024/10/14 12:39
加载中...