当前位置:网站首页>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;
}边栏推荐
- 2022 ARTS|Week 23
- Newoj week 10 question solution
- Pre research of image scanning tool
- Pytorch to onnx, onnxruntime reasoning in mmclas
- Overview of embedded system 1- definition, characteristics and development history of embedded system
- Application of list and Dict
- Source of routing information
- [EDA] chip layout design: VLSI layout design using electric
- R language ggplot2 visualization: use the ggrep package to add a number label to the data point at the end of the line plot
- [cloud native | kubernetes] in depth understanding of deployment (VIII)
猜你喜欢

import torch_ Data view of geometric

Hardware composition of embedded system - introduction of embedded development board based on ARM

Improve pipeline efficiency: you need to know how to identify the main obstacles in ci/cd pipeline

嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法

多源BFS问题 模板(附题)

Script引入CDN链接提示net::ERR_FILE_NOT_FOUND问题

"New continent" of mobile application going to sea

Online picture material

【微信小程序开发】第1篇:开发工具安装及程序配置

C#DBHelper_ FactoryDB_ GetConn
随机推荐
Wechat web developer tools tutorial, web development issues
torch_ About the geometric Mini batch
Summary of question brushing in leetcode sliding window
Symbolic constant, const qualifier
章鱼网络进展月报 | 2022.5.1-5.31
Further understanding of the network
Stm32f1 and stm32cubeide programming examples - device driver -eeprom-at24c256 driver
Implementing pytorch style deep learning framework similartorch with numpy
Hudi key generation
It is enough to read this article. Web Chinese development
【云原生 | Kubernetes篇】Ingress案例实战
Pytorch to onnx, onnxruntime reasoning in mmclas
【VIM】. Vimrc configuration, vundle and youcompleteme have been installed
torch_geometric mini batch 的那些事
Improve pipeline efficiency: you need to know how to identify the main obstacles in ci/cd pipeline
入门深度学习与机器学习的经验和学习路径
A "murder case" caused by ES setting operation
VGA显示彩条和图片(FPGA)
单向环形链表实现约瑟夫环
Innovation training (XI) summary of some bugs in the development process