当前位置:网站首页>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;
}
边栏推荐
- %s格式符
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- Combined with case: the usage of the lowest API (processfunction) in Flink framework
- Free, easy-to-use, powerful lightweight note taking software evaluation: drafts, apple memo, flomo, keep, flowus, agenda, sidenote, workflow
- 左右对齐!
- Halo effect - who says that those with light on their heads are heroes
- LVLG 8.2 circular scrolling animation of a label
- Node mongodb installation
- 如何配和弦
- Preliminary exploration of flask: WSGI
猜你喜欢
I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
Expose Ali's salary and position level
Ranking list of databases in July: mongodb and Oracle scores fell the most
flutter 报错 No MediaQuery widget ancestor found.
03 storage system
How to match chords
Ffmpeg Visual Studio development (IV): audio decoding
如何配和弦
随机推荐
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
IO flow: node flow and processing flow are summarized in detail.
Ffprobe common commands
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
如何配和弦
openresty 限流
C language programming
Summary of common problems in development
Node mongodb installation
Kubernets pod exists finalizers are always in terminating state
Why do domestic mobile phone users choose iPhone when changing a mobile phone?
LVGL 8.2 text shadow
When synchronized encounters this thing, there is a big hole, pay attention!
Preliminary exploration of flask: WSGI
左右对齐!
如何搭建一支搞垮公司的技术团队?
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
都在说DevOps,你真正了解它吗?
局部修改-渐进型开发