自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 费马定理的证明

昨天,看了数论里费马定理的证明,觉得挺巧妙,在这里自己跟着证明一下。

2014-01-13 15:49:50 2162

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除