Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

why wrong answer? here is my problem

Posted by wubin_s1 at 2007-06-12 20:58:01 on Problem 3103
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator