当前位置:网站首页>宽度精度
宽度精度
2022-07-04 13:32:00 【Zaltana】
输出18.16054,17.676767,宽度和精度由输入决定,右对齐。
格式
输入格式:输入为宽度和精度整型,空格分隔。
输出格式:输出为实型,空格分隔。
样例
输入:6 3
输出: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;
}
边栏推荐
- Details of FPGA underlying resources
- 都在说DevOps,你真正了解它吗?
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- LVLG 8.2 circular scrolling animation of a label
- flutter 报错 No MediaQuery widget ancestor found.
- Red envelope activity design in e-commerce system
- selenium 浏览器(2)
- 近一亿美元失窃,Horizon跨链桥被攻击事件分析
- Docker compose public network deployment redis sentinel mode
- On the implementation plan of MySQL explain
猜你喜欢
Comment configurer un accord
Deep learning network regularization
SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
【C语言】指针笔试题
内存管理总结
How to handle exceptions in multithreading?
LVGL 8.2 Line wrap, recoloring and scrolling
Explain of SQL optimization
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
随机推荐
Detailed explanation of visual studio debugging methods
LVGL 8.2 keyboard
金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
03 storage system
Kubernets pod exists finalizers are always in terminating state
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
近一亿美元失窃,Horizon跨链桥被攻击事件分析
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
Node mongodb installation
Red envelope activity design in e-commerce system
[C language] Pointer written test questions
5G电视难成竞争优势,视频资源成中国广电最后武器
[information retrieval] experiment of classification and clustering
LVGL 8.2 text shadow
TechSmith Camtasia studio 2022.0.2 screen recording software
C language achievement management system for middle school students
Redis 發布和訂閱
IO flow: node flow and processing flow are summarized in detail.