10分,呜呜呜
查看原帖
10分,呜呜呜
922134
jiejielove楼主2023/2/23 10:49
#include<iostream>
#include<stdio.h>
#include<math.h>
#include<iomanip>
#include<string>
#include<algorithm>
#include <cstdlib>
#include<stdlib.h>

using namespace std;


int main()
{
	float s;
	cin >> s;
	int count = 0;
	for (double i=0;i<=1.0;i=i+0.01)
	{
		for (double j = 0; j <= 1.0; j = j + 0.01)
		{
			for (double k = 0; k <= 1.0; k = k + 0.01)
			{
				for (double l = 0; l <= 1.0; l = l + 0.01)
				{
					if (((1 - i) * (1 - j) * (1- k) * (1 - l))==s)
					{
						count++;
					}
				}
			}
		}
	}


	cout << count;
	return 0;
}

2023/2/23 10:49
加载中...