当前位置:网站首页>信息学奥赛一本通1003:对齐输出
信息学奥赛一本通1003:对齐输出
2022-06-29 14:38:00 【冯耀文】
题目来源:http://ybt.ssoier.cn:8088/problem_show.php?pid=1003
时间限制: 1000 ms 内存限制: 66536 KB
提交数: 171618 通过数: 53905
【题目描述】
读入三个整数,按每个整数占8个字符的宽度,右对齐输出它们,按照格式要求依次输出三个整数,之间以一个空格分开。
【输入】
只有一行,包含三个整数,整数之间以一个空格分开。
【输出】
只有一行,按照格式要求依次输出三个整数,之间以一个空格分开。
【输入样例】
123456789 0 -1【输出样例】
123456789 0 -1两种输出方式,一种输入输出流加格式控制,另外一种标准输入输出
#include<iostream>
#include<stdio.h>
#include <iomanip>
using namespace std;
int main(){
int a,b,c;
// cin>>a>>b>>c;
// cout<<setw(8)<<a<<" "<<setw(8)<<b<<" "<<setw(8)<<c<<" "<<endl;
scanf("%d%d%d",&a,&b,&c);
printf("%8d %8d %8d",a,b,c);
return 0;
}边栏推荐
- China arsenic trioxide industry research and future forecast report (2022 Edition)
- 云上第一课 | 建个小破站有多简单?云计算老司机带你一小时搞定
- delphi7中 url的编码
- 驱动器实际运用案例
- Alibaba cloud experience Award: use polardb-x and Flink to build a large real-time data screen
- Uniapp problem list and experience
- 高並發軟件(網站,服務器端接口)的評價指標
- 【牛客网刷题系列 之 Verilog快速入门】~ 移位运算与乘法
- 卫星运动的微分方程
- 《canvas》之第13章 事件操作
猜你喜欢

Illustration of Ctrip quarterly report: net revenue of RMB 4.1 billion has been "halved" compared with that before the outbreak

部署搭建decentraland流程讲解

Transport layer user datagram protocol (UDP)

EXCEL的查询功能Vlookup

Nuscenes configuration information about radar

stm32 mbed 入门教程(四)---PWM

Chinese garbled code output from idea output station
![[top] blog instructions, bulletin board, message board, about bloggers](/img/3a/6100ae88874cad57305decce41c1e7.png)
[top] blog instructions, bulletin board, message board, about bloggers

Transport layer selective ACK

《canvas》之第12章 其他应用
随机推荐
技术沟通遇到3个为什么背后的逻辑
重磅!2022最新SCI影响因子发布,三大名刊NCS及国内期刊TOP10排名有变化 (内附2022年最新影响因子)
.NET程序配置文件操作(ini,cfg,config)
Research Report on research and development prospect of China's urea dioxide industry (2022 Edition)
卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚
Redis' cache avalanche, cache breakdown, cache penetration, cache preheating, and cache degradation
类模板案例-【数组类封装】
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
我登录RDB的数据库,提示需要主账号授权,这个我怎么知道该找谁?
三角函数对应在平面坐标上画圆
kubernetes Unable to connect to the server: x509: certificate has expired or is not yet valid
Whitelabel error page access
《canvas》之第11章 canvas状态
Are you still reading the log by command? Use kibana, one picture is better than ten thousand lines of log
Chapter 11 of canvas canvas status
Can futures accounts be opened offline? Is it safe to open an account online?
Imitation headline news information DZ template discuz news information business version GBK template source code
Chapter 12 other applications of canvas
仿头条新闻资讯dz模板 Discuz新闻资讯商业版GBK模板源码
面试突击61:说一下MySQL事务隔离级别?