hiho week 49 register

Ended

Participants:509

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-07 17:34:11

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"
#define NUM 10010
int deg[NUM]={0};
int main()
{
#ifdef DEBUG
    freopen("in.txt","r",stdin);
#endif
    int N=0, M=0;
    scanf("%d %d", &N, &M);
    int a=0, b=0;
    while (M--)
    {
        scanf("%d %d", &a, &b);
        deg[a]++;
        deg[b]++;
    }
    int res=0;
    for (int i=1; i<=N; i++)
    {
        if(deg[i]%2)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX