hiho week 43 register

Ended

Participants:830

Verdict:Accepted
Score:100 / 100
Submitted:2015-04-27 15:55:33

Lang:GCC

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<stdio.h>
#define mod 12357
long d[200][200];
long  mat[200][200];
long swap[200][200], pow1[200][200], pow2[200][200];
int K;
void DFS(int x, int y, int col){
    if(col == K){
        d[y][x] = 1;
        return ;
    }
    DFS(x << 1, (y << 1) + 1, col + 1);
    DFS((x << 1) + 1, y << 1, col + 1);
    if( col + 2 <= K){
        DFS( (x << 2) + 3, (y << 2) + 3, col + 2 );
    }
}
void assignment(long a[200][200], long b[200][200], int n)
{
    int i, j;
    for (i = 0; i<n; i++)
    {
        for (j = 0; j<n; j++)
        {
            a[i][j] = b[i][j];
        }
    }
}
void multMat(long a[200][200], long b[200][200], long result[200][200], int n)
{
    int i, j, k;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX