姚洪溪
姚洪溪
关注数: 48
粉丝数: 8
发帖数: 3,754
关注贴吧数: 16
这怎么接?
新人请教 select cc,AVG(tch) from ph201404 where day(datetime) in (1,2,3) group by cc 我要把ph201403表中的31号数据放进去一起算平均值应该什么写?
放了化肥后就这样了,求救啊 本来很茂盛的,施化肥后就变陈这样了,请问怎么办啊
盗跖原来是柳下惠的弟弟
学习编程要考什么证书 一楼度娘
结构体指针问题 int cmp ( const void *a , const void *b ) { return (*(In *)a)->data > (*(In *)b)->data ? 1:-1; } 请问哪里错了 自己找了半天找不到
n!求救 超时,求大神指点思路 #include<stdio.h> int main() { int a[40000]; int n,max,temp,x; int i,j; while(scanf("%d",&n)) { a[0]=1;max=0; for(i=2;i<=n;i++) { temp=0; for(j=0;j<=max;j++) { a[j]=a[j]*i+temp; temp=a[j]/100000; if(temp>0) { a[j]=a[j]%100000; if(j==max) { a[j+1]=0; max++; } } } } printf("%d",a[max]); for(i=max-1;i>=0;i--) { if(a[i]<10000) { printf("0"); if(a[i]<1000) { printf("0"); if(a[i]<100) { printf("0"); if(a[i]<10) printf("0"); } } } printf("%d",a[i]); } printf("\n"); } return 0; } 超时了,怎么改啊
qsort求助 正在自学qsort,尝试编了一下最简单的,但是不对,求大虾指教一下 #include<stdio.h> #include<stdlib.h> #include<string> int num[100]; int cmp ( const void *a , const void *b ) { return *(int *)a - *(int *)b; } int main() { int t,i; scanf("%d",&t); for(i=0;i<t;i++) scanf("%d",&num[i]); qsort(num,100,sizeof(num[0]),cmp); for(i=0;i<t;i++) printf("%d",num[i]); }
求cs6破解程序 cs6已经下了,快到期了,求破解程序,求大神给一个
[email protected]
请教个问题 编程输入n输出e 这公式什么意思啊
请问cs6怎样做gif图 请问一下cs6怎样做gif动态图片啊,以前用cs3会用,换了cs6不会用了
不懂,求解释 #include<stdio.h> bool aTrue,bTrue; int judge(int m,int n,int p) { if(aTrue)return 0; if(m==1&&n==1) { aTrue=true;return 0; } if(n==1)bTrue=true; while(p>1) { if(m%p==0)judge(m/p,n,p-1); if(n%p==0)judge(m,n/p,p-1); p--; } return 0; } int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a<b) {int temp=a;a=b;b=temp;} aTrue=false; bTrue=false; judge(a,b,100); if(!aTrue&&bTrue)printf("%d\n",b); elseprintf("%d\n",a); } return 0; }
新手求助 浙大ACM题目,自己答案试试是对的但上传上去是Wrong Answer,求各位大神帮忙看看我哪个方面没考虑到
新人求救 //求两数之和 #include<iostream> using namespace std; int main() { int a,b>>,sum; cin>>a>>b; sum=a+b; cout<<"a+b="<<sum<<endl; return 0; } 请问一下定义的时候b后面为什么要加 >>
ZOJ Problem Set - 1078 求救,到底哪里错了 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Facm.zju.edu.cn%2Fonlinejudge%2FshowProblem.do%3FproblemId%3D78&urlrefer=30c86329188fd03072e2ed77cd637ded #include<stdio.h> int main() { int n,m,i,q,flog,FLOG,k; char a[30]; while((scanf("%d",&n))!=EOF) { if(n==0) { return 0; } FLOG=0; for(i=2;i<=16;i++) { m=n; q=0; while(m!=0) { a[q]='0'+(m%i); m=m/i; q++; } flog=0; q--; for(k=0;k<=q/2;k++) { if(a[k]!=a[q-k]) { flog=1; break; } } if(flog==0) { if(FLOG==0) { printf("Number %d is palindrom in basis",n); FLOG=1; } printf(" %d",i); } } if(FLOG==0) { printf("Number %d is not a palindrome",n); } printf("\n"); } return 0; }
我的程序怎么关不了?? 一楼度娘
新手求助 用数组输入12个阿拉伯数(12个月份)在屏幕上显示出相应的英文
C#新手求救 求A数组里有10个数B数组里有10个数显示出这两数组中相同的数
开始学习ACM,每天坚持做题 一楼留给度娘
程序超时了,怎么改 #include<stdio.h>int main(){int i,x,n;while(scanf("%d",&n)!=EOF){if(n%2==0||n==0){printf("2^? mod %d = 1\n",n);continue;}x=1;for(i=0;x!=1;i++) {x=x*2;x=x%n;}printf("2^%d mod %d = 1\n",i,n);}}
《C语言深度解剖?怎么样?? 我 在网上下了《C语言深度解剖》,请问这本书怎么样,看了有没有用????
新手求助 请问(struct node*)malloc(sizeof(struct node)); 什么意思啊
新手求助 void print(struct node *head); 什么意思啊
请问哪里错了 #include<stdio.h> struct node { int num; struct node *next; }; main() { struct node *head; struct node *create(); void print(struct node *head); head=create(); print (head); } struct node *create() { struct node *head,*p1,*p2; p1=p2=(struct node*)malloc(sizeof(struct node)); head=NULL; scanf("%d",&p1->num); p1->next=NULL; while(p1->num!=0) { p1->next=NULL; if(head==NULL)head=p1; else p2->next=p1; p2=p1; p1=(struct node*)malloc(sizeof(struct node)); p1->next=NULL; return head; } p2->next=NULL; return head; } void print(struct node *head) { struct node *temp; temp=head; while(temp!=NULL) { printf("%3d",temp->num); temp=temp->next; } }
3月了,万里长城什么时候出啊
VC怎么用啊?? 我 以前用c-free的请问新建哪个啊??
求数据链路结构的教学视频 求数据链路结构的教学视频!!!
请问软件大赛考什么东西啊 请问软件大赛考什么东西啊?? 哪位大神指导一下呗
新手求助 a+=a是什么意思啊
1
下一页