hiho week 81 register

Ended

Participants:133

Verdict:Wrong Answer
Score:0 / 100
Submitted:2016-01-21 16:55:28

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<cstdio>
#include<iostream>
#include<stdlib.h>
#include<string.h>
using namespace std;
#define MAX_SIGNAL 100000
struct stream{
    int start;
    int branch;
    int next[100000];      
};
int case_num=0;
int start_sg[MAX_SIGNAL];
int start_sg_num=0;
int stream_num=0;
int sg[MAX_SIGNAL];
int line_count[MAX_SIGNAL]={0};
stream* line[MAX_SIGNAL];
void sg_branch(int);
int main(){
    
    int i=0;    
    scanf("%d\n",&case_num);
    string output="";
    
    while(i<case_num){
        i++;
        scanf("%d %d\n",&stream_num,&start_sg_num);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX