上一页 1 ··· 4 5 6 7 8
摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>int dir[5][2]={{0,0},{0,1},{0,-1},{1,0},{-1,0}};int map[5][6];int A[30][31];#define in(x,y) (x>=0&&x<5&&y>=0&&y<6) void change(int a[31],int b[31]){ int c[31]; int i; for(i=0;i<31;i++) { c[i 阅读全文
posted @ 2012-07-12 08:45 willzhang 阅读(255) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>__int64 x,y;__int64 extended_gcd(__int64 a,__int64 b){ __int64 t,gcd; if(b==0) { x=1; y=0; return a; } gcd=extended_gcd(b,a%b); t=x; x=y; y=t-a/b*y; return gcd;}int main(){ __int64 p,q,m,n,l; scanf("%I6 阅读全文
posted @ 2012-07-12 08:44 willzhang 阅读(107) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>int x,y;int extended_gcd(int a,int b){ int t,gcd; if(b==0) { x=1; y=0; return a; } gcd=extended_gcd(b,a%b); t=x; x=y; y=t-a/b*y; return gcd;}int main(){ int a[3],d; int i; int m[3]={23,28,33}; int M; int w; 阅读全文
posted @ 2012-07-12 08:43 willzhang 阅读(197) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>int main(){ double a[12]; int i,j; double sum=0; for(i=0;i<12;i++){ scanf("%lf",&a[i]); sum+=a[i]; } sum=sum/12; printf("$%.2f\n",sum); //system("PAUSE"); return 0;}纯水T_T 阅读全文
posted @ 2012-07-12 08:41 willzhang 阅读(88) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8