Time limit   1000 ms

Memory limit   131072 kB

Digital clock use 4 digits to express time, each digit is described by 3*3 characters (including”|”,”_”and” “).now given the current time, please tell us how can it be expressed by the digital clock.

 


Input

There are several test cases.
Each case contains 4 integers in a line, separated by space.
Proceed to the end of file.


Output

For each test case, output the time expressed by the digital clock such as Sample Output.


Sample Input

1 2 5 6
2 3 4 2

Sample Output

    _  _  _
| _||_ |_
||_ _||_|
_ _ _
_| _||_| _|
|_ _| ||_

Hint

The digits showed by the digital clock are as follows:
_ _ _ _ _ _ _ _
| _| _||_||_ |_ ||_||_|| |
||_ _| | _||_| ||_| _||_| 签到题,理清楚就好,代码如下
 #include <iostream>
#include<stdio.h>
using namespace std;
int num[];
char s1[][]={
{' ','_',' '},{' ',' ',' '},{' ','_',' '},{' ','_',' '},
{' ',' ',' '},{' ','_',' '},{' ','_',' '},{' ','_',' '},
{' ','_',' '},{' ','_',' '}
};
char s2[][]={
{'|',' ','|'},{' ',' ','|'},{' ','_','|'},{' ','_','|'},
{'|','_','|'},{'|','_',' '},{'|','_',' '},{' ',' ','|'},
{'|','_','|'},{'|','_','|'}
};
char s3[][]={
{'|','_','|'},{' ',' ','|'},{'|','_',' '},{' ','_','|'},
{' ',' ','|'},{' ','_','|'},{'|','_','|'},{' ',' ','|'},
{'|','_','|'},{' ','_','|'}
};
int main()
{
while(~scanf("%d",&num[]))
{
for(int i=;i<;i++)scanf("%d",&num[i]); for(int i=;i<;i++)
for(int j=;j<;j++)
{ printf("%c",s1[num[i]][j]);
}
printf("\n");
for(int i=;i<;i++)
for(int j=;j<;j++)
{
printf("%c",s2[num[i]][j]);
}
printf("\n");
for(int i=;i<;i++)
for(int j=;j<;j++)
{
printf("%c",s3[num[i]][j]);
}
printf("\n"); } return ;
}

NBUT 1219 Time 2010辽宁省赛的更多相关文章

  1. NBUT 1221 Intermediary 2010辽宁省赛

    Time limit 1000 ms Memory limit 131072 kB It is widely known that any two strangers can get to know ...

  2. NBUT 1220 SPY 2010辽宁省赛

    Time limit  1000 ms Memory limit  131072 kB The National Intelligence Council of X Nation receives a ...

  3. NBUT 1217 Dinner 2010辽宁省赛

    Time limit  1000 ms Memory limit  32768 kB Little A is one member of ACM team. He had just won the g ...

  4. NBUT 1224 Happiness Hotel 2010辽宁省赛

    Time limit 1000 ms Memory limit 131072 kB The life of Little A is good, and, he managed to get enoug ...

  5. NBUT 1222 English Game 2010辽宁省赛

    Time limit 1000 ms Memory limit 131072 kB This English game is a simple English words connection gam ...

  6. NBUT 1225 NEW RDSP MODE I 2010辽宁省赛

    Time limit  1000 ms Memory limit  131072 kB Little A has became fascinated with the game Dota recent ...

  7. NBUT 1218 You are my brother 2010辽宁省赛

    Time limit 1000 ms Memory limit 131072 kB Little A gets to know a new friend, Little B, recently. On ...

  8. NBUT 1223 Friends number 2010辽宁省赛

    Time limit  1000 ms Memory limit   131072 kB Paula and Tai are couple. There are many stories betwee ...

  9. ZOJ 1985 Largest Rectangle in a Histogram(刷广告)2010辽宁省赛

    Largest Rectangle in a Histogram Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 21204 ...

随机推荐

  1. hdu 5671 Matrix 标记。。。有点晕

    Matrix Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Problem ...

  2. vue router菜单 存在点哪个但还是会显示active

    <router-link to="/" exact>Home</router-link> <router-link to="/add&quo ...

  3. python 元组查找元素返回索引

    #create a tuple tuplex = tuple("index tuple") print(tuplex) #get index of the first item w ...

  4. c++ primer plus 第七章 课后题答案

    #include <iostream> using namespace std; double HAR_AVG(double, double); void TEST(bool); int ...

  5. Spring AMQP 源码分析 04 - MessageListener

    ### 准备 ## 目标 了解 Spring AMQP 如何实现异步消息投递(推模式) ## 前置知识 <RabbitMQ入门_05_多线程消费同一队列> ## 相关资源 Quick To ...

  6. resin中关于url rewrite来传递jsessionid的问题

    最近两天在项目中碰到,一个很奇怪的问题.同一个账号多次切换登录时,会出现这个账号的信息在session中找不到,虽然可以登录成功,但是之后这个用户信息好像没有保存到session中一样,或者是被改变了 ...

  7. LeetCode--027--移除元素

    问题描述: 给定一个数组 nums 和一个值 val,你需要原地移除所有数值等于 val 的元素,返回移除后数组的新长度. 不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间 ...

  8. docker添加国内仓库安装iredmail

    centos 7: 1.yum install docker or yum update docker sudo tee /etc/docker/daemon.json <<-'EOF'{ ...

  9. [洛谷P1507]NASA的食物计划 以及 对背包问题的整理

    P1507 NASA的食物计划 题面 每个物品有三个属性,"所含卡路里":价值\(v\),"体积":限制1\(m_1\),以及"质量":限制 ...

  10. Underground Lab CodeForces - 782E (欧拉序)

    大意:$n$结点,$m$条边无向图, 有$k$个人, 每个人最多走$\left\lceil\frac {2n}{k}\right\rceil$步, 求一种方案使得$k$个人走遍所有的点 $n$结点树的 ...