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

WA了,自己的编译器无错误提示,求大牛指点orz

Posted by zhbohao at 2011-11-13 13:15:00 on Problem 1005
#include <stdio.h>
#define PI 3.14159

main()
{
	float x,y,r;
	double R;
	unsigned short n,year;
	
	scanf("%hd",&n);
	while(n)
	{
		scanf("%f %f",&x,&y);
		r=x*x+y*y;
		for(R=0,year=0;R<r;year++)
			R=100/PI+R;
		printf("Property %hd: This property will begin eroding in year %hd.\n",n,year);
		n--;
	}
	printf("END OF OUTPUT.");
}

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