当前位置:网站首页>宽度与对齐
宽度与对齐
2022-07-04 13:32:00 【Zaltana】
输出455,-123,987654,宽度为5,分别左对齐和右对齐
格式
输入格式:无
输出格式:输出为整型,空格分隔。每个数的输出占一行
样例
输入:无
输出:455 455
-123 -123
987654 987654
#include<bits/stdc++.h>
using namespace std;
int main( )
{
printf("%-5d %5d\n" ,455,455);
printf("%-5d %5d\n" ,-123,-123);
printf("%-5d %5d\n" , 987654 , 987654);
return 0;
}
边栏推荐
- Details of FPGA underlying resources
- When synchronized encounters this thing, there is a big hole, pay attention!
- 5G电视难成竞争优势,视频资源成中国广电最后武器
- C language achievement management system for middle school students
- Transplant tinyplay for imx6q development board QT system
- 03-存储系统
- [C language] Pointer written test questions
- Redis publish and subscribe
- Deep learning 7 transformer series instance segmentation mask2former
- 音视频技术开发周刊 | 252
猜你喜欢
Flutter reports an error no mediaquery widget ancestor found
leecode学习笔记-约瑟夫问题
程序员自曝接私活:10个月时间接了30多个单子,纯收入40万
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
[information retrieval] experiment of classification and clustering
Classify boost libraries by function
近一亿美元失窃,Horizon跨链桥被攻击事件分析
《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
Preliminary exploration of flask: WSGI
随机推荐
C language set operation
Comment configurer un accord
LVGL 8.2 List
leecode学习笔记-约瑟夫问题
深度学习7 Transformer系列实例分割Mask2Former
Introduction to modern control theory + understanding
Memory management summary
PLC模拟量输入 模拟量转换FC S_ITR (CODESYS平台)
Docker compose public network deployment redis sentinel mode
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?
A collection of classic papers on convolutional neural networks (deep learning classification)
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
LVGL 8.2 text shadow
ES6 modularization
Redis 發布和訂閱
Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television
深度学习 神经网络的优化方法
Data Lake (13): spark and iceberg integrate DDL operations
Red envelope activity design in e-commerce system