hiho week 49 register

Ended

Participants:509

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-06 21:40:46

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 <memory.h>
using namespace std;
const int MAX_N = 10000;
int deg[MAX_N+1];
int main()
{
    int n, m;
    cin >> n >> m;
    int n1, n2;
    for (int i = 0; i < m; ++i) {
        cin >> n1 >> n2;
        deg[n1]++;
        deg[n2]++;
    }
    int count_odd = 0;
    for (int i = 1; i <= n; ++i) {
        if (deg[i] % 2 == 1) count_odd++;
    }
    if (count_odd == 0 || count_odd == 2)
        cout << "Full" << endl;
    else cout << "Part" << endl;
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX