2012年7月13日
摘要: 很简单的递归,没什么好说的,贴代码,留纪念。View Code 1 /*{ 2 ID:jzy3209981 3 PROG:numtri 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 using namespace std;10 11 int numtriangle[1005][1005];12 int result[1005];13 int temporary[1005];14 15 void start(int n)16 {17 int i; 阅读全文
posted @ 2012-07-13 20:41 醉春雨 阅读(156) 评论(0) 推荐(0)
摘要: 坑爹的题,居然让我写了800行代码还没过,只能重新写…………个人觉得老卡在这道题没什么意思,所以只是枚举着过了,,虽然过了,但是代码写的很烂,下面贴出代码,以作纪念.View Code 1 /*{ 2 ID:s42k5ek 3 PROG:packrec 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 using namespace std; 10 11 void paixu(int first[][2],int a,int b) 12 { 13 阅读全文
posted @ 2012-07-13 17:17 醉春雨 阅读(163) 评论(0) 推荐(0)