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 |
why wrong answer? here is my problem#include<cstdio> int x,y,z,n; double T1,T2; int main() { scanf("%d %d %d %d",&x,&y,&z,&n); for (int r=1;r<=n;r++) { T1=double(x)*(r-1)/n; T2=double(x)*r/n; printf("%.8lf %d %d %.8lf %d %d\n",T1,y,z,T2,y,z); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator