hiho week 43 register

Ended

Participants:830

Verdict:Accepted
Score:100 / 100
Submitted:2015-04-27 10:24:33

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>
#include <climits>
#include <cmath>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <queue>
#include <stack>
using namespace std;
typedef long long LL;
const int mod = 12357;
const int maxn = 129;
struct Matrix {
    int n, m, g[maxn][maxn];
    Matrix(int n, int m): n(n), m(m) {
        memset(g, 0, sizeof(g));
    }
    Matrix(int a[maxn][maxn], int n, int m): n(n), m(m) {
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < m; j++) {
                g[i][j] = a[i][j];
            }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX