| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
为何我的代码过不了呢?#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator