随笔分类 -  母函数

摘要:真的很气愤,这题的限制条件有严格控制,代码中体现,我都无语了#include <stdio.h>#include <stdlib.h>int a[260][101],b[260][101];//第二维数组为硬币数 int main(){ int i,j,k,l,n,sum; int c[5]={1,5,10,25,50}; for(i=0;i<=260;i++) for(j=0;j<=101;j++) { a[i][j]=0;b[i][j]=0; } for(i=0;i<=100;i++)//用面值为1的硬币组成价值为i(不超过100) { b[i][ 阅读全文
posted @ 2012-04-01 14:18 shijiwomen 阅读(550) 评论(0) 推荐(0)