hiho week 48 register

Ended

Participants:456

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-03 19:25:31

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 <cstdio>
const int sizeofpoint=131072;
const int sizeofedge=1048576;
const int p=142857;
inline int getint();
inline void putint(int);
struct edge
{
    int point;
    edge * next;
};
edge memory[sizeofedge], * port=memory;
inline edge * newedge(int, edge * );
int n, m, k;
int f[sizeofpoint];
int q[sizeofpoint];
int d[sizeofpoint];
edge * e[sizeofpoint];
int main()
{
    int l=0, r=0;
    n=getint(), m=getint(), k=getint();
    for (int i=1;i<=k;i++)
        f[getint()]++;
    for (int i=1;i<=m;i++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX