hiho week 70 register

Ended

Participants:371

Verdict:Accepted
Score:100 / 100
Submitted:2015-11-01 14:56:23

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 <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <utility>
#include <algorithm>
using namespace std;
const int MAXN = 105;
const int MAXM = 55;
const int MODULOR = 1000000007;
int N, M;
int dp[MAXN][MAXN][MAXM];
int g[MAXN][MAXM];
int gcd(int a, int b){
    return b == 0? a: gcd(b, a % b);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX