11 solutions
- 1
Information
- ID
- 847
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- # Submissions
- 1163
- Accepted
- 364
- Uploaded By
#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);
}
By signing up a TeMenHu universal account, you can submit code and join discussions in all online judging services provided by us.