求助qwq爆0我太low了

P5730 【深基5.例10】显示屏

SIXIANG32 @ 2020-03-16 09:29:58

#include<iostream>
#include<string>
using namespace std;
string s[6][11]={
    {"   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "}, 
    {"   ","XXX","..X","XXX","XXX","X.X","XXX","XXX","XXX","XXX","XXX"},
    {"   ","X.X","..X","..X","..X","X.X","X..","X..","..X","X.X","X.X"},
    {"   ","X.X","..X","XXX","XXX","XXX","XXX","XXX","..X","XXX","XXX"},
    {"   ","X.X","..X","X..","..X","..X","..X","X.X","..X","X.X","..X"},
    {"   ","XXX","..X","XXX","XXX","..X","XXX","XXX","..X","XXX","XXX"},
};
int main()
{
    int n;
    cin>>n;
    string str;
    cin>>str;
    for(int p=1;p<=5;p++)
    {
        for(int i=0;i<=n-1;i++)
        {
            cout<<s[p][int(str[i]-48)];
            if(i!=0&&i!=n-1)
            cout<<'.';
        }
        cout<<endl;
    }
    return 0;
}

爆0求助那~~~


by liqingyang @ 2020-03-16 09:38:13

@SIXIANG 哦,我11


by SIXIANG32 @ 2020-03-16 09:38:13

@liqingyang xxs


by SIXIANG32 @ 2020-03-16 09:38:27

@liqingyang 天哪,OMG


by liqingyang @ 2020-03-16 09:39:26

@SIXIANG 您为什么不直接参加洛谷入门赛,做这道题呀(当时这场我可是AK了)


by liqingyang @ 2020-03-16 09:40:26

只不过那一场我名次最低,我总共参加了三场,一场得分不如一场,但是名次一场比一场高。。。


by SIXIANG32 @ 2020-03-16 09:41:52

@liqingyang 额,能冲回正题吗?还是保龄。


by dingcx @ 2020-03-16 09:42:02

@SIXIANG i=0 也要输出 .


by infinities @ 2020-03-16 09:42:03

WEE


by liqingyang @ 2020-03-16 09:43:07

@SIXIANG 可以您还有一个问题,就是i!=0的时候不需要取消呀!


by SIXIANG32 @ 2020-03-16 09:43:18

@dingcx 哦,谢谢


上一页 | 下一页