Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
69696 | sh25_wangtaojie | 对齐输出 | C++ | 输出格式错误 | 0 MS | 256 KB | 352 | 2025-10-11 15:49:16 |
#include <iostream> #include <iomanip> // 用于setw函数 using namespace std; int main() { int a, b, c; cin >> a >> b >> c; // 读入三个整数 // 每个整数占7个字符宽度,右对齐,中间用空格分隔 cout << setw(7) << a << " " << setw(7) << b << " " << setw(7) << c << endl; return 0; }