11 条题解
- 1
信息
- ID
- 847
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 6
- 标签
- 递交数
- 1108
- 已通过
- 339
- 上传者
#include <iostream>
using namespace std;
int main()
{
int a , b, c;
cin >> a >> b >> c;
// cout << left << setw(8) << a ;
// cout <<right<< " "<< setw(8) << b << " "
// << setw(8) << c << endl;
printf("%8d %8d %8d\n",a,b,c);
}
考试不加return 0,赛后就吃0鸭蛋
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
cout << setw(8) << a << ' ';
cout << setw(8) << b << ' ';
cout << setw(8) <<c;
return 0;
}
有标志认证,属三无产品,请各位放心食用
请叫我装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;
}
#include <stdio.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int a , b, c;
cin >> a >> b >> c;
// cout << left << setw(8) << a ;
// cout <<right<< " "<< setw(8) << b << " "
// << setw(8) << c << endl;
printf("%8d %8d %8d\n",a,b,c);
}