1 条题解

  • 0
    @ 2026-9-25 11:00:55
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        ios::sync_with_stdio(false);
        cin.tie(nullptr);
        int a, b, c, p = 0;
        cin >> a >> b >> c;
        for (int i = 1; i <= 8; ++i) {
            for (int j = 1; j <= 16; ++j) {
                ++p;
                if (p == a)
                    cout << (char)a;
                else if (p == b)
                    cout << (char)b;
                else if (p == c)
                    cout << (char)c;
                else
                    cout << '*';
            }
            cout << '\n';
        }
        return 0;
    }
    
    • 1

    信息

    ID
    5292
    时间
    1000ms
    内存
    512MiB
    难度
    10
    标签
    递交数
    4
    已通过
    3
    上传者