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

1005的问题..新人受打击啊。.

Posted by 109442777 at 2007-06-16 00:13:02
刚开始接触这个没多少时间,其实英文也不难理解的么.
关于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:
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