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 |
运行蛮正确,为何频频wrong?#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator