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

运行蛮正确,为何频频wrong?

Posted by zhangquanwei at 2009-08-10 16:59:09 on Problem 1005
#include<iostream>
using namespace std;

int main()
{
	float *x,*y;
	int N;
	int m;
	cin>>N;
	x=new float[N];
	y=new float[N];
	for(int i=0;i<N;i++)
	{
		cin>>x[i]>>y[i];
	}
	for(int j=0;j<N;j++)
	{
		m=(x[j]*x[j]+y[j]*y[j])/(100/3.14)+1;
		cout<<"Property "<<j+1<<": This property will begin eroding in year "<<m<<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