Tính chu vi, diện tích hình tròn

View as PDF

Submit solution

Points: 0.10
Time limit: 0.1s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Giới thiệu: Đây là đề Traning Python

Viết chương trình tính chu vi, diện tích của hình tròn. Bán kính ~r~ là một số thực được nhập từ bàn phím. (Làm tròn giá trị ~\pi = 3.14~)

Input

Một số thực là bán kính ~r~

Output

Lần lượt là chu vi và diện tích hình tròn cách nhau bởi ~1~ dấu cách. Kết quả làm tròn tới chữ số thập phân thứ ~2~

Examples

Input

0.5

Output

3.14 0.79

Comments

Please read the guidelines before commenting.



  • 0
    ggxoaxoavippro  commented on March 13, 2026, 1:25 p.m.

    sfxdf


  • 0
    hgb_donut  commented on Oct. 7, 2025, 11:11 a.m.

    include <bits/stdc++.h>

    using namespace std; double r,pi=3.14; int main() { cin >>r; double a= 2pir,b=rrpi; cout <<fixed<<setprecision(2)<< a <<" "<< b; return 0; }


  • 0
    hgb_donut  commented on Oct. 7, 2025, 11:10 a.m.

    thanh huong


  • 0
    hgb_donut  commented on Oct. 7, 2025, 11:10 a.m.

    include <bits/stdc++.h>

    using namespace std; double r,pi=3.14; int main() { cin >>r; double a= 2pir,b=rrpi; cout <<fixed<<setprecision(2)<< a <<" "<< b; return 0; }