作业帮 > 综合 > 作业

求c语言高手做此题"Well,it seems the first problem is too easy.I will

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/18 21:52:15
求c语言高手做此题
"Well,it seems the first problem is too easy.I will let you know how foolish you are later." feng5166 says.
"The second problem is,given an positive integer N,we define an equation like this:
N=a[1]+a[2]+a[3]+...+a[m];
a[i]>0,1
#include
using namespace std;
const int m=120;
int c1[m+1],c2[m+1];
int main()
{
int n,i,j,k;
while(cin>>n)
{
for(i=0;i
再问: 求思路