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

能成功,但是程序退出逻辑有问题

Posted by yayu_myself at 2010-02-06 00:28:39 on Problem 2405
In Reply To:你这能提交成功吗???? Posted by:DaoRen at 2008-07-24 16:52:17
> #include <math.h>
> #include <stdio.h>
> 
> #define Pi 3.1415926
> 
> int main()
> {
> 	double D;
> 	double d;
> 	double V;
> 
> 	while(scanf("%lf%lf",&D,&V),D && V)
> 	{
> 		d=pow(D*D*D-6*V/Pi,1.0/3);
> 		printf("%.3lf\n",d);
> 	}
> }

while(scanf("%lf%lf",&D,&V),D || V)

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