1 条题解

  • 0
    @ 2026-2-5 8:16:21
    #include <iostream>
    using namespace std;
    
    int main() {
        // 定义字符变量接收输入的单个字符
        char ch;
        cin >> ch;
    
        // 第一行:2个空格 + 1个字符
        cout << "  " << ch << endl;
        // 第二行:1个空格 + 3个字符
        cout << " " << ch << ch << ch << endl;
        // 第三行:0个空格 + 5个字符
        cout << ch << ch << ch << ch << ch << endl;
    
        return 0;
    }
    
    • 1

    信息

    ID
    511
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    25
    已通过
    13
    上传者