MSBOP 2015 Round2B register

Ended

Participants:6187

Verdict:AC | AC
Submitted:2015-04-26 15:38:36

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 <stdio.h>
#include <string.h>
#include <string>
#include <iostream>
using namespace std;
#define LL unsigned long long
const int maxn = 15;
const int maxm = 5;
LL f[maxn][maxn][maxn][maxn][maxn][maxm];
bool vis[maxn][maxn][maxn][maxn][maxn][maxm];
int k;
int s[maxn];
int cnt[maxn];
char ch[10];
int num[100];
int n;
int change(char c) {
    if (c >= '2' && c <= '9') {
        return c - '0';
    } else if (c == 'T') {
        return 10;
    } else if (c == 'J') {
        return 11;
    } else if (c == 'Q') {
        return 12;
    } else if (c == 'K') {
        return 13;
    } else if (c == 'A') {
        return 1;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX