当前位置:网站首页>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;
}
边栏推荐
- C language set operation
- Programmers exposed that they took private jobs: they took more than 30 orders in 10 months, with a net income of 400000
- openresty 限流
- Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?
- Introduction to modern control theory + understanding
- C language course design questions
- Node mongodb installation
- [local differential privacy and random response code implementation] differential privacy code implementation series (13)
- 力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
- Redis publish and subscribe
猜你喜欢
Flutter reports an error no mediaquery widget ancestor found
开源人张亮的 17 年成长路线,热爱才能坚持
Introduction to modern control theory + understanding
numpy笔记
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Guitar Pro 8win10 latest guitar learning / score / creation
Deep learning network regularization
leecode学习笔记-约瑟夫问题
Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
随机推荐
Openresty redirection
Comment configurer un accord
MySQL组合索引(多列索引)使用与优化案例详解
%f格式符
LVGL 8.2 Line wrap, recoloring and scrolling
Is BigDecimal safe to calculate the amount? Look at these five pits~~
The performance of major mainstream programming languages is PK, and the results are unexpected
go-zero微服务实战系列(九、极致优化秒杀性能)
Ali was laid off employees, looking for a job n day, headhunters came bad news
《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
Programmer turns direction
Redis publier et s'abonner
Redis publish and subscribe
Preliminary exploration of flask: WSGI
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
Redis 發布和訂閱
LVLG 8.2 circular scrolling animation of a label
5G电视难成竞争优势,视频资源成中国广电最后武器
宽度与对齐
Openresty current limiting