Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
抽象类
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 169, Accepted users: 141
Problem 10505 : No special judgement
Problem description
  应用抽象类,求圆、圆内接正方形和圆外切正方形的面积和周长。

Input
  输入数据第一行为一个整数T,表示有T组数据。每组数据一行,为一浮点数,表示圆的半径。

Output
  对于每一组数据,分别输出结果,小数点后保留四位精度。格式参照样例输出。pi取3.14。

Sample Input
2
4
24.45
Sample Output
Circle area is:50.2400
Circle perimeter is:25.1200
Incircle Rectangle area is:32.0000
Incircle Rectangle perimeter is:22.6274
Outcircle Rectangle area is:64.0000
Outcircle Rectangle perimeter is:32.0000
Circle area is:1877.0999
Circle perimeter is:153.5460
Incircle Rectangle area is:1195.6050
Incircle Rectangle perimeter is:138.3101
Outcircle Rectangle area is:2391.2100
Outcircle Rectangle perimeter is:195.6000
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2021 today,16258748 total, since 2010-05-07