hiho Week 1 register

Ended

Participants:1162

Verdict:Accepted
Submitted:2014-07-07 09:56:22

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
//
//  main.cpp
//  hiho1
//
//  Created by zhangchi on 14-7-7.
//  Copyright (c) 2014 ZhangChi. All rights reserved.
//
#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
using namespace std;
#define Min(a,b) a>b?b:a
char a[2000080],b[1000080];
int  p[2000080];
int main(int argc, const char * argv[])
{
    
    int  n,MaxId,MaxL,id;
    int  T;
    
    scanf("%d",&T);
    while (T--) {
        memset(a, 0, sizeof(a));
        memset(b, 0, sizeof(b));
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX