hiho week 49 register

Ended

Participants:509

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

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;
int main()
{
    int N,M,odd = 0;
    bool ob[11000];
    cin>>N>>M;
    for(int i=1;i<=N;i++) ob[i] = 0;
    for(int i=0;i<M;i++){
        int u,v;
        cin>>u>>v;
        ob[u] = !ob[u];
        ob[v] = !ob[v];
        odd += ob[u]?1:-1;
        odd += ob[v]?1:-1;
    }
    cout<<(odd<3?"Full":"Part")<<endl;
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX