求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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 20:42:04
求c语言高手做此题"Well,itseemsthefirstproblemistooeasy.Iwillletyouknowhowfoolishyouarelater."feng5166says."T

求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
求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

求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