- 博客(4)
- 收藏
- 关注
原创 杭电1005 ,之前没遇到过,找到规律之后就蛮容易了。。。。
#include using namespace std; int main(){ int a; int b; int n; int time=0; int c; int i; cin>>a>>b>>n; int num[200]; while(a||b||n){ num[1]=1; num[2]=1; if(i>=3){ for
2014-01-27 18:46:19 648
原创 杭电1003 ,好歹对了,但是空间复杂度挺高的。。。。。
/*这个算法是以前在编程之美上看过的,正好遇到了,做一下*/ #include #include #include using namespace std; int main(){ int n; cin>>n; int **a=new int* [n]; int **sum=new int *[n];//储存带有a[i]的最大值 int **maxsum=new int *[n
2014-01-25 15:47:09 655
原创 坑爹啊,下次要看清楚题目要求了,杭电1002,结果对了,但是格式不一样,也不想改了
#include #include #include using namespace std; const int N=1000; const int N2=1001; void sum(char *num1,char *num2,int a,int b,int m){ char num3[1001]; int flag=0; int x=a>b?a:b; int temp=0; for
2014-01-13 22:52:04 710
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人