当前位置:网站首页>宽度精度
宽度精度
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;
}边栏推荐
- Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
- es6模块化
- 为什么国产手机用户换下一部手机时,都选择了iPhone?
- 金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
- 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
- Exploration and practice of eventbridge in the field of SaaS enterprise integration
- 浮点数如何与0进行比较?
- openresty 限流
- LVGL 8.2 Sorting a List using up and down buttons
- Redis publier et s'abonner
猜你喜欢

如何配和弦

LVGL 8.2 Line wrap, recoloring and scrolling

Detailed explanation of visual studio debugging methods

Redis 发布和订阅

Ffprobe common commands

Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency

LVGL 8.2 Line

Memory management summary

Luo Gu - some interesting questions 2

Ultrasonic distance meter based on 51 single chip microcomputer
随机推荐
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
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!
They are all talking about Devops. Do you really understand it?
Ali was laid off employees, looking for a job n day, headhunters came bad news
Redis 解决事务冲突之乐观锁和悲观锁
How to build a technical team that will bring down the company?
A collection of classic papers on convolutional neural networks (deep learning classification)
[C language] Pointer written test questions
Classify boost libraries by function
Guitar Pro 8win10 latest guitar learning / score / creation
《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
Respect others' behavior
selenium 浏览器(2)
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
numpy笔记
Xcode abnormal pictures cause IPA packet size problems
LVGL 8.2 LED
Redis publier et s'abonner
Programmer turns direction