MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 16:57:29

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<math.h>
#include<iostream>
#include<vector>
#include<queue>
#include<algorithm>
using namespace std;
typedef long long ll;
typedef double db;
const int N = 100005;
const int M = 16;
const int INF = 1000000000;
int a[N];
int p[M], n, K;
bool mk[M];
int cnt[M];
int num[N][M];
int calc()
{
    int res(0),ind(1);
    int ss;
    ss=0;
    for(int i = 1; i <= K; i++)
    {
        for(int j = 1; j <= n; j++)
        {
            if(a[j] == p[i])
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX