| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 88906 | hansuyang | 对齐输出 | C++ | 通过 | 1 MS | 236 KB | 258 | 2026-05-19 12:34:50 |
#include <iostream> #include <iomanip> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<setw(7)<<a<<setw(7)<<b<<setw(7)<<c<<endl;//setw(7),使下一个输出按7个字符的宽度,右对齐。 return 0; }