1 条题解

  • 0
    @ 2026-8-28 19:59:04

    #include<bits/stdc++.h> using namespace std; int main(){ string num[4][5] = { {".....","..","..","..","....."}, {".",".",".",".","."}, {".....",".",".....",".","....."}, {".....",".",".....","*.","....."} }; string n; cin >> n; for(int i = 0; i < 5; i++){ // 5行 for(char c : n){ // 每个数字 int idx = c - '0'; cout << num[idx][i]; // 输出该数字的第i行 } cout << endl; }

    return 0;
    

    }

    • 1

    信息

    ID
    81
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    11
    已通过
    2
    上传者