hiho week 49 register

Ended

Participants:509

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-06 20:12:44

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
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
#define rep(i,n) for(int i=1;i<=n;i++)
const int maxn=10005;
vector<int> vec[maxn];
int main()
{
    int n,m,x,y,js=0;
    cin>>n>>m;
    rep(i,n)    vec[i].clear();
    while(m--){
        scanf("%d%d",&x,&y);
        vec[x].push_back(y);
        vec[y].push_back(x);
    }
    rep(i,n){
        if(vec[i].size()%2==1)
            js++;
    }
    if(js==2 || js==0)
        cout << "Full" << endl;
    else
        cout<<"Part"<<endl;
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX