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

结果是对的,为什么老是CE呢?

Posted by Brokensky at 2008-11-29 11:06:00 on Problem 1005
#include<stdio.h>
void main()
{
    int N,i;
    scanf("%d",&N);
    float X[N],Y[N];
    int YEAR[N];
    for(i=0;i<N;i++)
       {
                    scanf("%f%f",&X[i],&Y[i]);
                    YEAR[i]=(int)((X[i]*X[i]+Y[i]*Y[i])*3.14/100)+1;
       }
    for(i=0;i<N;i++)
       printf("Property %d: This property will begin eroding in year %d.\n",i+1,YEAR[i]);
    printf("END OF OUTPUT.");
}

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