11 条题解
信息
- ID
- 847
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 6
- 标签
- 递交数
- 1108
- 已通过
- 339
- 上传者
请叫我装x之王:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
cout << setw(8) << right << a;
cout << setw(8) << right << b;
cout << setw(8) << right << c;
return 0;
}
yeap!
神马离谱玩意儿?求大神帮改!
“只有一行,按照格式要求依次输出三个整数,之间以一个空格分开。” 空格:那我走 正确代码:
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
const int N=1e7+10;
const int INF=0x3f3f3f3f;
int main()
{
int a, b, c;
cin >> a >> b >> c;
cout << setw(8)<< a<<" ";
cout << setw(8)<< b<<" ";
cout << setw(8)<< c;
return 0;
}