当前位置:网站首页>Width accuracy
Width accuracy
2022-07-04 15:04:00 【Zaltana】
Output 18.16054,17.676767, Width and accuracy are determined by input , Right alignment .
Format
Input format : Input as width and precision integer , The blank space to separate .
Output format : Output is real , The blank space to separate .
Examples
Input :6 3
Output :18.161 17.677
#include<bits/stdc++.h>
using namespace std;
int main( )
{
int a,b;
cin>>a>>b;
cout<<setw(a)<<fixed<<setprecision(b)<<18.16054<<" ";
cout<<setw(a)<<fixed<<setprecision(b)<<17.676767;
return 0;
}边栏推荐
- Flutter reports an error no mediaquery widget ancestor found
- When synchronized encounters this thing, there is a big hole, pay attention!
- How to handle exceptions in multithreading?
- 智能客服赛道:网易七鱼、微洱科技打法迥异
- 金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
- Alcohol driving monitoring system based on stm32+ Huawei cloud IOT design
- 都在说DevOps,你真正了解它吗?
- 局部修改-渐进型开发
- 进制形式
- 【C语言】指针笔试题
猜你喜欢

Helix swarm Chinese package is released, and perforce further improves the user experience in China

Expose Ali's salary and position level

力扣刷题01(反转链表+滑动窗口+LRU缓存机制)

IO流:节点流和处理流详细归纳。

Why do domestic mobile phone users choose iPhone when changing a mobile phone?

When synchronized encounters this thing, there is a big hole, pay attention!
![[local differential privacy and random response code implementation] differential privacy code implementation series (13)](/img/fe/f6a13dcf31ac67633ee5a59d95149d.jpg)
[local differential privacy and random response code implementation] differential privacy code implementation series (13)

Weibo and Huya advance into interest communities: different paths for peers

go-zero微服务实战系列(九、极致优化秒杀性能)

flutter 报错 No MediaQuery widget ancestor found.
随机推荐
一篇文章学会GO语言中的变量
十六进制
韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
Openresty current limiting
深度学习 神经网络案例(手写数字识别)
Why do domestic mobile phone users choose iPhone when changing a mobile phone?
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
各大主流编程语言性能PK,结果出乎意料
输入宽度!
炒股网上开户安全吗?会不会被骗。
Redis 發布和訂閱
暑期复习,一定要避免踩这些坑!
Leecode learning notes - Joseph problem
Techsmith Camtasia Studio 2022.0.2屏幕录制软件
左右对齐!
PLC模拟量输入 模拟量转换FC S_ITR (CODESYS平台)
阿里被裁员工,找工作第N天,猎头又传来噩耗...
Deep learning 7 transformer series instance segmentation mask2former
Quick introduction to automatic control principle + understanding