当前位置:网站首页>宽度精度
宽度精度
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;
}
边栏推荐
- Query optimizer for SQL optimization
- What are the concepts of union, intersection, difference and complement?
- LVGL 8.2 Line
- 深度学习 神经网络案例(手写数字识别)
- 如何搭建一支搞垮公司的技术团队?
- Exploration and practice of eventbridge in the field of SaaS enterprise integration
- %f格式符
- LVGL 8.2 Draw label with gradient color
- Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
- LVGL 8.2 LED
猜你喜欢
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Expose Ali's salary and position level
5G电视难成竞争优势,视频资源成中国广电最后武器
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
如何配和弦
音视频技术开发周刊 | 252
Explain of SQL optimization
(1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!
numpy笔记
随机推荐
Redis 发布和订阅
现代控制理论入门+理解
Is BigDecimal safe to calculate the amount? Look at these five pits~~
03-存储系统
Comment configurer un accord
内存管理总结
Luo Gu - some interesting questions
LVGL 8.2 LED
ES6 modularization
SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
阿里被裁员工,找工作第N天,猎头又传来噩耗...
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
92. (cesium chapter) cesium building layering
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
C language programming
音视频技术开发周刊 | 252
Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency
C language book rental management system
Deep learning neural network case (handwritten digit recognition)
Free, easy-to-use, powerful lightweight note taking software evaluation: drafts, apple memo, flomo, keep, flowus, agenda, sidenote, workflow