上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 41 下一页
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 1000100 int num[N]; long long ans; void guibing(int a_1,int a_2,int b_1,int b_2){//归 阅读全文
posted @ 2015-05-04 13:50 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> int main(){ int T; int i,j,k,t,n; while(~scanf("%d",&n),n!=0){ k=n; int flag=0; int temp=0; for(i=1;i<=k;i++){ fl 阅读全文
posted @ 2015-04-28 13:42 wojiaohuangyu 阅读(10) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int num_fir[100100]; int num_sec[100100]; int num_thi[100100]; int cmp(i 阅读全文
posted @ 2015-04-24 17:47 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; struct node{ int left; int right; }table[300]; int cmp(node x,node y){ r 阅读全文
posted @ 2015-04-19 20:44 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: 。。。 #include<stdio.h> #include<string.h> int number[12]; void fun(){ int i,j; number[0]=1; for(i=1;i<12;i++) number[i]=number[i-1]*i; } int main(){ in 阅读全文
posted @ 2015-04-18 17:21 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 水题。。。。 #include<stdio.h> #include<string.h> //__int64 f(__int64 number){ // __int64 t=1; // __int64 i; // for(i=1;i<=number;i++) // t*=i; // return t; 阅读全文
posted @ 2015-04-18 15:57 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: 二分法 : #include<stdio.h> #include<string.h> #include<math.h> int main(){ int i,j,k,t; int T; double mod,temp_one,temp_two,last,number; scanf("%d",&T); 阅读全文
posted @ 2015-04-18 10:00 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 大概意思就是用的递归,先向左子树递归,然后向右子树递归。。。 #include<stdio.h> #include<string.h> char str[100],zf[100]; void deal(int num_x,int num_y,int num_a,int num_b){ int i,j 阅读全文
posted @ 2015-04-15 21:43 wojiaohuangyu 阅读(11) 评论(0) 推荐(0)
摘要: 汉诺塔的规律就是当有n层时,一共需要移动2的n次方减1次 那么问题来了,求2的n次方。。。。 #include<stdio.h> #include<string.h> long long deal(long long n){ long long t; if(n==1) return 2; t=dea 阅读全文
posted @ 2015-04-15 19:53 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> int main(){ int m; double n,temp; while(~scanf("%lf%d",&n,&m)){ temp=1/n; printf("%.2lf\n",temp); } return 0; } 阅读全文
posted @ 2015-04-14 19:15 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 41 下一页