求助60pts
查看原帖
求助60pts
950150
cwxcdzw楼主2024/3/13 18:22

代码:

#include<bits/stdc++.h>
using namespace std;
double a,b,q,p;
int ans;
int main(){
	cin>>a>>b>>q>>p;
	while((b/a)>(p/q)) ans++;
	cout<<ans;
	return 0;
}

求助!!!

2024/3/13 18:22
加载中...