当前位置:网站首页>宽度精度
宽度精度
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;
}
边栏推荐
- 92. (cesium chapter) cesium building layering
- 为什么国产手机用户换下一部手机时,都选择了iPhone?
- openresty 重定向
- Node mongodb installation
- Data Lake (13): spark and iceberg integrate DDL operations
- Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
- Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
- Is it safe to open an account online for stock speculation? Will you be cheated.
- (1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!
- 如何配和弦
猜你喜欢
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Helix swarm Chinese package is released, and perforce further improves the user experience in China
[information retrieval] link analysis
MP3是如何诞生的?
They are all talking about Devops. Do you really understand it?
《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
Programmers exposed that they took private jobs: they took more than 30 orders in 10 months, with a net income of 400000
随机推荐
Deep learning network regularization
Luo Gu - some interesting questions
A keepalived high availability accident made me learn it again
Docker compose public network deployment redis sentinel mode
Summary of common problems in development
leetcode:6109. Number of people who know the secret [definition of DP]
[information retrieval] experiment of classification and clustering
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
C language programming
LVGL 8.2 text shadow
Ffmpeg Visual Studio development (IV): audio decoding
Programmers exposed that they took private jobs: they took more than 30 orders in 10 months, with a net income of 400000
Detailed explanation of visual studio debugging methods
Gin integrated Alipay payment
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?
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
On the implementation plan of MySQL explain
Yyds dry goods inventory # solve the real problem of famous enterprises: continuous maximum sum
Guitar Pro 8win10 latest guitar learning / score / creation
[information retrieval] link analysis