Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:怎么会是Runtime error呢?大家帮帮忙吧!!In Reply To:怎么会是Runtime error呢?大家帮帮忙吧!! Posted by:tears at 2005-11-26 16:27:01 > #include <stdio.h> > #include <math.h> > void main(){ > int i,a,b,c,d,e,g,n; > scanf("%d",&n); > for(i=1;i<=n;i++){ > scanf("%d %d %d %d",a,b,c,d); > if(b-a==c-b&&c-b==d-c){ > e=d+d-c; > } > else if(b/a==c/b&&c/b==d/c){ > g=d/c; > e=d*g; > } > printf("%d %d %d %d %d\n",a,b,c,d,e); > } > } > 还未学数组,用这个方法为什么不行呢? > Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator