全部评论 2

  • 这样行吗???

    #include<bits/stdc++.h>
    using namespace std;
    string zero[6]={".....",".***.",".***.",".***.","....."};
    string one[6]={"****.","****.","****.","****.","****."};
    string two[6]={".....","****.",".....",".****","....."};
    string three[6]={".....","****.",".....","****.","....."};
    int main(){
    	string s;
        cin>>s;
        for(int i=0;i<5;i++){
            for(int j=0;j<s.size();j++){
                if(s[j]==0){
                    cout<<zero[i];
                }
                if(s[j]==1){
                    cout<<one[i];
                }
                if(s[j]==2){
                    cout<<two[i];
                }
                if(s[j]==3){
                    cout<<three[i];
                }
            }
            cout<<endl;
        }
    	return 0;
    }
    

    2026-08-09 来自 福建

    0
  • 头文件可以用这个

    #include <bits/stdc++.h>
    

    2025-12-17 来自 上海

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页