hiho Week 15 register

Ended

Participants:1653

Verdict:Time Limit Exceeded
Score:70 / 100
Submitted:2014-10-12 18:35:16

Lang:GCC

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<stdio.h>
#include<stdlib.h>
#define LEN 100000
char namebuf[LEN][100];
int vbuf[LEN];
int flag[LEN];
int link[LEN];
int namenum=0, reqnum=0;
int reqbuf[LEN][2];
int result[LEN];
int changelog[LEN];
int pr[LEN][1000], prlen[LEN];
void mystrcpy(char *str1, char *str2){
    int m=0;
    while(str2[m]!=0){
        str1[m] = str2[m];
        m++;
    }
    str1[m] = 0;
}
int find(char *name){
    int m;
    for(m=0;m<namenum;m++){
        if(strcmp(name,namebuf[m])==0){
            return m;
        }
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX