当前位置:网站首页>宽度与对齐
宽度与对齐
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;
}
边栏推荐
- 找数字
- C language achievement management system for middle school students
- 关于FPGA底层资源的细节问题
- They are all talking about Devops. Do you really understand it?
- 微博、虎牙挺进兴趣社区:同行不同路
- 程序员自曝接私活:10个月时间接了30多个单子,纯收入40万
- The performance of major mainstream programming languages is PK, and the results are unexpected
- On the implementation plan of MySQL explain
- 信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
- selenium 浏览器(2)
猜你喜欢
Ffmpeg Visual Studio development (IV): audio decoding
How to build a technical team that will bring down the company?
Xcode abnormal pictures cause IPA packet size problems
LVGL 8.2 text shadow
Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
程序员自曝接私活:10个月时间接了30多个单子,纯收入40万
Expose Ali's salary and position level
Node mongodb installation
IO flow: node flow and processing flow are summarized in detail.
随机推荐
Why do domestic mobile phone users choose iPhone when changing a mobile phone?
Memory management summary
5G电视难成竞争优势,视频资源成中国广电最后武器
炒股网上开户安全吗?会不会被骗。
How to build a technical team that will bring down the company?
Yyds dry goods inventory # solve the real problem of famous enterprises: continuous maximum sum
Explain of SQL optimization
The performance of major mainstream programming languages is PK, and the results are unexpected
LVGL 8.2 LED
Guitar Pro 8win10 latest guitar learning / score / creation
remount of the / superblock failed: Permission denied
近一亿美元失窃,Horizon跨链桥被攻击事件分析
Docker compose public network deployment redis sentinel mode
flutter 报错 No MediaQuery widget ancestor found.
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
深度学习 网络正则化
LVGL 8.2 Sorting a List using up and down buttons
Redis 解决事务冲突之乐观锁和悲观锁
Redis 發布和訂閱
Programmers exposed that they took private jobs: they took more than 30 orders in 10 months, with a net income of 400000