当前位置:网站首页>宽度精度
宽度精度
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;
}边栏推荐
- LVGL 8.2 Line
- 智能客服赛道:网易七鱼、微洱科技打法迥异
- 深度学习 网络正则化
- C language personal address book management system
- Yyds dry goods inventory # solve the real problem of famous enterprises: continuous maximum sum
- LVGL 8.2 Line
- 5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television
- How to build a technical team that will bring down the company?
- 92. (cesium chapter) cesium building layering
- Docker compose public network deployment redis sentinel mode
猜你喜欢

Data Lake (13): spark and iceberg integrate DDL operations

Ffmpeg Visual Studio development (IV): audio decoding

TechSmith Camtasia studio 2022.0.2 screen recording software

Guitar Pro 8win10 latest guitar learning / score / creation

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

Quick introduction to automatic control principle + understanding

深度学习 神经网络的优化方法

Helix Swarm中文包发布,Perforce进一步提升中国用户体验

5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television

03-存储系统
随机推荐
Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)
进制乱炖
Redis publier et s'abonner
Quick introduction to automatic control principle + understanding
openresty 限流
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
selenium 元素交互
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?
C language small commodity management system
92. (cesium chapter) cesium building layering
remount of the / superblock failed: Permission denied
深度学习 神经网络案例(手写数字识别)
LVGL 8.2 LED
智能客服赛道:网易七鱼、微洱科技打法迥异
Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency
Luo Gu - some interesting questions
PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
Deep learning 7 transformer series instance segmentation mask2former
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding