90求调
查看原帖
90求调
1395991
wenyuchixiao楼主2025/1/5 15:32

90求调


#include<bits/stdc++.h>
using namespace std;
int main() {
	long long ans=0;
	long double s;
	cin>>s;
	long long S=s*100000000;
	int P1=100,P2=100,P3=100,P4=100;
	for(P1=1;P1<=100;P1++){
		for(P2=1;P2<=100;P2++){
			for(P3=1;P3<=100;P3++){
				for(P4=1;P4<=100;P4++){
					if((100-P1)*(100-P2)*(100-P3)*(100-P4)==S) ans++;
				}
			}
			
		}
	}
	cout<<ans;
	return 0;
}
2025/1/5 15:32
加载中...