当前位置:网站首页>Width and alignment
Width and alignment
2022-07-04 15:04:00 【Zaltana】
Output 455,-123,987654, Width is 5, Align left and right respectively
Format
Input format : nothing
Output format : The output is an integer , The blank space to separate . The output of each number occupies one line
Examples
Input : nothing
Output :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;
}
边栏推荐
- openresty 限流
- C language set operation
- 10. (map data) offline terrain data processing (for cesium)
- Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
- LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路
- 现代控制理论入门+理解
- IO flow: node flow and processing flow are summarized in detail.
- Memory management summary
- 智能客服赛道:网易七鱼、微洱科技打法迥异
- Numpy notes
猜你喜欢
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Memory management summary
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
Quick introduction to automatic control principle + understanding
92. (cesium chapter) cesium building layering
【大连理工大学】考研初试复试资料分享
5G电视难成竞争优势,视频资源成中国广电最后武器
各大主流编程语言性能PK,结果出乎意料
03-存储系统
Halo effect - who says that those with light on their heads are heroes
随机推荐
MP3是如何诞生的?
LVGL 8.2 Sorting a List using up and down buttons
程序员自曝接私活:10个月时间接了30多个单子,纯收入40万
Expose Ali's salary and position level
如何配和弦
浮点数如何与0进行比较?
Deep learning network regularization
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
C language course design questions
Red envelope activity design in e-commerce system
Memory management summary
Halcon knowledge: NCC_ Model template matching
内存管理总结
C language set operation
Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?
C language programming
Redis publish and subscribe
Quick introduction to automatic control principle + understanding
Redis 发布和订阅
They are all talking about Devops. Do you really understand it?