hiho week 85 register

Ended

Participants:236

Verdict:Accepted
Score:100 / 100
Submitted:2016-02-15 00:05:32

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<cstdio>
#include<cstring>
#define N 510
#define getch ch=getchar()
using namespace std;
int go[10][10]=
{
    {1,0,0,0,0,0,0,0,0,0},
    {1,1,1,1,1,1,1,1,1,1},
    {1,0,1,1,0,1,1,0,1,1},
    {0,0,0,1,0,0,1,0,0,1},
    {1,0,0,0,1,1,1,1,1,1},
    {1,0,0,0,0,1,1,0,1,1},
    {0,0,0,0,0,0,1,0,0,1},
    {1,0,0,0,0,0,0,1,1,1},
    {1,0,0,0,0,0,0,0,1,1},
    {0,0,0,0,0,0,0,0,0,1},
};
int x[N];
void into()
{
    char getch; for(;ch<'0'||ch>'9';getch);
    for(;ch>='0'&&ch<='9';getch) x[++x[0]]=ch-'0';
}
void print(int *A)
{
    for(int i=1;i<=x[0];i++)
        printf("%d",A[i]); puts("");
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX