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

Re:WA!输出格式有没有陷阱啊?

Posted by SCUT_Sparrow at 2006-12-24 20:06:30 on Problem 1665
In Reply To:WA!输出格式有没有陷阱啊? Posted by:SCUT_Sparrow at 2006-12-17 22:29:27
我的源程序如下,有什么问题啊?
#include<iostream.h>
#include<stdio.h>
void main()
{	float d,t,l,v;
	long int r,n=0;
	cin>>d>>r>>t;
	while (r>0)
	{       l=d*r*3.1415927/12/5280;
		v=l/t*3600;
		cout<<"Trip #"<<++n<<": ";
		printf("%0.2f %0.2f\n",l,v);
		cin>>d>>r>>t;
	}
}

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