hiho week 47 register

Ended

Participants:466

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-28 13:27:49

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 <vector>
#include <stack>
using namespace std;
struct node
{
    int in;
    vector<int>out;
};
int main()
{
    int t;
    cin>>t;
    while(t!=0)
    {
        int n,m;
        cin>>n>>m;
        vector<node>gouph;
        for(int i=0;i<n;i++)
        {
            node a;
            a.in=0;
            gouph.push_back(a);
        }
        for(int i=0;i<m;i++)
        {
            int a,b;
            cin>>a>>b;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX