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

Re:这就是我对你程序的理解,努力加油呀!---slience

Posted by zyz at 2007-04-10 20:53:51 on Problem 1005
In Reply To:Re:这就是我对你程序的理解,努力加油呀!---slience Posted by:luckyapple at 2006-07-01 10:00:04
怎么那么复杂的?
-----------------
#include<stdio.h>

#define pi 3.14159

int main(){
	int number;
	int k=1;
	scanf("%d", &number);
	while(number>0){
		float i,j;
		scanf("%f %f", &i, &j);
		printf("Property %d: This property will begin eroding in year %d.\n", k, (int)(pi*(i*i+j*j)/100)+1);
		number--;k++;
	}
	printf("END OF OUTPUT.\n");
}

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