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 li5ch at 2013-11-23 21:04:13 on Problem 1005
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
   int i=0,n,N;
   double x,y;
   cin>>n;
   for(int j=0;j<n;j++)
   {
	   cin>>x>>y;
	   i++;
	   N=(x*x+y*y)*3.1416/50;
	   N=(int)(N+0.5);
	   printf("Property %d: This property will begin eroding in year %d.\n",i,N+1);
   }
   cout<<"END OF OUTPUT."<<endl;
   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