当前位置:网站首页>2067: [example 2.5] circle
2067: [example 2.5] circle
2022-06-12 13:23:00 【Xiao Liu wants to be number one】
2067:【 example 2.5】 round
The time limit : 1000 ms Memory limit : 65536 KB
Submission number : 27674 Passing number : 14895
【 Title Description 】
Enter the radius r, The diameter of the output circle 、 Perimeter 、 area , Numbers are separated by a space , Keep each number after the decimal point 4 position .
【 Input 】
Enter the radius .
【 Output 】
As stated in the title . Numbers are separated by a space .
【 sample input 】
1.0【 sample output 】
2.0000 6.2832 3.1416#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
float r, d, c,PI=3.1415926, s;
cin >> r;
d = 2 * r;
c = 2* PI * r;
s = PI * r * r;
cout << setiosflags(ios::fixed) << setprecision(4) << d << " " << c << " " << s;
return 0;
}边栏推荐
- 创新实训(十)高级界面美化
- Bitmap, bloom filter and hash sharding
- 关于#SQLite写注册功能时,数据表查询出错#的问题,如何解决?
- 在 Debian 10 上独立安装MySQL数据库
- Software construction 03 regular expression
- Octopus network progress monthly report | may 1-May 31, 2022
- Innovation training (x) advanced interface beautification
- Pytorch framework
- import torch_ Data view of geometric
- [you code, I fix] whitesource was officially renamed mend
猜你喜欢

Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem

Getting to know blob objects

How to adapt the page size when iframe is embedded in a web page

Source of routing information

Implementing pytorch style deep learning framework similartorch with numpy

Design virtual network to realize communication between virtual machine instance and external network

torch_ About the geometric Mini batch

Overview of embedded system 1- definition, characteristics and development history of embedded system

403 you don't have permission to access this resource

Automatic Generation of Visual-Textual Presentation Layout
随机推荐
Overview of embedded system 3- development process, learning basis and methods of embedded system
442 authors, 100 pages! It took Google 2 years to release the new benchmark big bench | open source
Octopus network progress monthly report | may 1-May 31, 2022
Further understanding of the network
torch_geometric mini batch 的那些事
What if the MySQL installation on the apple computer is completed and cannot be found
[embedded] serial communication and its case
Embedded system hardware composition - embedded system hardware architecture
Chrome debugging tool
leetcode 47. Permutations II full permutations II (medium)
创新实训(十一)开发过程中的一些bug汇总
Django note 21: querying databases using native SQL
【云原生 | Kubernetes篇】深入了解Ingress
创新实训(十)高级界面美化
[you code, I fix] whitesource was officially renamed mend
torch_geometric message passing network
A "murder case" caused by ES setting operation
在 Debian 10 上独立安装MySQL数据库
【云原生 | Kubernetes篇】Ingress案例实战
嵌入式系統硬件構成-基於ARM的嵌入式開發板介紹