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

蒟蒻报道,竟提交了2遍,做了七分钟呢,哎,我真是太菜了。

Posted by yanhaoyang2106 at 2022-02-03 08:41:49 and last updated at 2022-02-03 08:42:57
include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{
	int i, n;
	double pi, x, y, years;
	cin >> n;
	pi = 3.1415926;
	for(int i = 1;i <= n;i ++){
		cin >> x >> y;
		years = pi * (x * x + y * y) / 100;
		printf("Property %d: This property will begin eroding in year %d.\n", i, (int) years + 1);
	}
	printf("END OF OUTPUT.");
	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