求助!!!
查看原帖
求助!!!
1454953
YUANSHEN101478楼主2024/10/14 12:39
#include<bits/stdc++.h>
using namespace std;
int main(){
	long long 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<<cout<<"same";
		}
	}
	return 0;
}
2024/10/14 12:39
加载中...