求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/05/18 10:55:49
求c语言高手做此题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

求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