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:为什么这个通不过?(0error 0warning)

Posted by sylr at 2004-11-14 00:20:25 on Problem 1005
In Reply To:为什么这个通不过?(0error 0warning) Posted by:90401408 at 2004-11-12 12:02:11
> #include <stdio.h>
> #include <math.h>
> #include <iostream.h>
> 
> void main() {
> 	double X,Y,pi;
> 	pi=acosl(-1.0);
> 	int i,N,year;
> 	scanf("%d\n",&N);
> 	for(i=1;i<N;i++) {
> 		scanf("%.1f %.1f\n",&X,&Y);
> 		year=(int)ceil(pi*(X*X+Y*Y)/2/50);
> 		printf("Property %d: This property will begin eroding in year %d.\n",i,year);
> 	}
> 	printf("END OF OUTPUT.\n");
> }

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