1 solutions

  • 0
    @ 2025-11-5 15:15:51

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
    	char s[10][3][3] = {{{' ','_',' '}, {'|',' ','|'}, {'|','_','|'}},
    						{{' ',' ',' '}, {' ',' ','|'}, {' ',' ','|'}},
    						{{' ','_',' '}, {' ','_','|'}, {'|','_',' '}},
    						{{' ','_',' '}, {' ','_','|'}, {' ','_','|'}},
    						{{' ',' ',' '}, {'|','_','|'}, {' ',' ','|'}},
    						{{' ','_',' '}, {'|','_',' '}, {' ','_','|'}},
    						{{' ','_',' '}, {'|','_',' '}, {'|','_','|'}},
    						{{' ','_',' '}, {' ',' ','|'}, {' ',' ','|'}},
    						{{' ','_',' '}, {'|','_','|'}, {'|','_','|'}},
    						{{' ','_',' '}, {'|','_','|'}, {' ','_','|'}}
    					   };
    	int a[4];
    	while (cin>>a[0]>>a[1]>>a[2]>>a[3])
    	{
    		for (int i=0; i<3; i++)	//分3行输出
    		{
    			for (int j=0; j<4; j++)	//每次输出4个数字的部分
    				for (int k=0; k<3; k++) cout<<s[a[j]][i][k];
    			cout<<endl;
    		}
    	}
    }
    
    • 1

    Information

    ID
    16581
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By