MSBOP 2015 Round2B register

Ended

Participants:6187

Verdict:AC | TLE
Submitted:2015-04-26 14:16:48

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
// CodeForces.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string>
using namespace std;
int n, m;
char cards[100];
bool use[100];
char ans[100];
void input()
{
    scanf("%d", &n);
    int i;
    char ch[10];
    for (i = 0; i < n; i++)
    {
        scanf("%s", &ch);
        cards[i] = ch[0];
    }
}
void dfs(int lay)
{
    if (lay == n)
    {
        m++;
        return;
    }
    int i;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX