当前位置:网站首页>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;
}
边栏推荐
- Programmers exposed that they took private jobs: they took more than 30 orders in 10 months, with a net income of 400000
- Deep learning 7 transformer series instance segmentation mask2former
- Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
- C language set operation
- 暑期复习,一定要避免踩这些坑!
- 毕业季-个人总结
- Deep learning network regularization
- MySQL组合索引(多列索引)使用与优化案例详解
- 局部修改-渐进型开发
- LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
猜你喜欢
各大主流编程语言性能PK,结果出乎意料
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
go-zero微服务实战系列(九、极致优化秒杀性能)
Flutter reports an error no mediaquery widget ancestor found
Deep learning network regularization
03 storage system
numpy笔记
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
Combined with case: the usage of the lowest API (processfunction) in Flink framework
Redis 發布和訂閱
随机推荐
Is it safe to open an account online for stock speculation? Will you be cheated.
go-zero微服务实战系列(九、极致优化秒杀性能)
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Graduation season - personal summary
Deep learning neural network case (handwritten digit recognition)
Ffmpeg Visual Studio development (IV): audio decoding
左右对齐!
Summary of common problems in development
ES6 modularization
LVGL 8.2 text shadow
LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路
Ffprobe common commands
深度学习 网络正则化
%f格式符
10. (map data) offline terrain data processing (for cesium)
Preliminary exploration of flask: WSGI
深度学习 神经网络案例(手写数字识别)
浮点数如何与0进行比较?
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing