| ||||||||||
| 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 | |||||||||
1005的问题..新人受打击啊。.刚开始接触这个没多少时间,其实英文也不难理解的么.
关于1005的问题.
在自己机子上运行良好.
但一SUBMIT.就出错了。.很是郁闷..代码如下:
#include <iostream>
using namespace std;
int main()
{
int i = 0;
int n;
float x, y;
cin >> n;
while( ++i <= n )
{
cin >> x >> y;
int year = (int) ( 3.1415926*( x * x + y * y) / (2 * 50) + 1 );
cout << "Property " << i << ": This property will begin eroding in year " << year << "." << endl;
}
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