MSBOP 2015 Round2B register

Ended

Participants:6187

Verdict:AC | AC
Submitted:2015-04-26 15:23:56

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 <stdio.h>
#include <string.h>
#include <stdlib.h>
using namespace std;
int T,i;
unsigned long long f[14][14][14][14][5];
int a[5],n;
int h[14][14][14][14][5];
int cha(char c)
{
    if(c=='A') return 1;
    if(c>='2'&&c<='9') return c-'0';
    if(c=='T') return 10;
    if(c=='J') return 11;
    if(c=='Q') return 12;
    return 13;
}
void init()
{
    scanf("%d",&n);
    int i,p[14]={0};
    char s[5];
    for(i=1;i<=n;i++)
     scanf("%s",s),p[cha(s[0])]++;
    memset(a,0,sizeof(a));
    for (i=1;i<=13;i++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX