Search found 1 match
- Tue Sep 06, 2011 7:00 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11715 - Car
- Replies: 14
- Views: 5039
Re: 11715 - Car
Why WA? #include<stdio.h> #include<math.h> int main() { int i; int a; double b,c,d; double u,v,ac,s,t; for(i=1;; i++) { scanf("%d",&a); if(a==0)break; scanf("%lf %lf %lf",&b,&c,&d); printf("Case %d: ",i); if(a==1) { u=b; v=c; t=d; ac=(v-u)/t; s=u*t+.5*ac...