当前位置:网站首页>宽度精度
宽度精度
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;
}
边栏推荐
- The performance of major mainstream programming languages is PK, and the results are unexpected
- 各大主流编程语言性能PK,结果出乎意料
- Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
- Gin integrated Alipay payment
- leecode学习笔记-约瑟夫问题
- Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?
- (1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!
- 阿里被裁员工,找工作第N天,猎头又传来噩耗...
- LVGL 8.2 Draw label with gradient color
- 找数字
猜你喜欢
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
Is BigDecimal safe to calculate the amount? Look at these five pits~~
LVGL 8.2 text shadow
Ffmpeg Visual Studio development (IV): audio decoding
Luo Gu - some interesting questions
[MySQL from introduction to proficiency] [advanced chapter] (IV) MySQL permission management and control
内存管理总结
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
阿里被裁员工,找工作第N天,猎头又传来噩耗...
Red envelope activity design in e-commerce system
随机推荐
LVGL 8.2 Sorting a List using up and down buttons
First experience of ViewModel
Comment configurer un accord
PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
They are all talking about Devops. Do you really understand it?
LVGL 8.2 Sorting a List using up and down buttons
Deep learning 7 transformer series instance segmentation mask2former
Node mongodb installation
【C语言】指针笔试题
Openresty redirection
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Docker compose public network deployment redis sentinel mode
Ffprobe common commands
局部修改-渐进型开发
Ffmpeg Visual Studio development (IV): audio decoding
Luo Gu - some interesting questions
Partial modification - progressive development
自动控制原理快速入门+理解
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?