为什么只得5分???
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
long long n, s, m;
cin >> n >> s >> m;
double num = 10000000 / n;
for (int i = 0; i <= n - m; i++)
{
for (int j = 0; j <= m; j++)
{
long long sum = num * (n - m) + i + num * j * 0.5;
if (sum == s)
{
cout << "p" << n - m << "(+" << i << ") f" << j << " l" << m - j;
return 0;
}
}
}
return 0;
}