hiho week 127 register

Ended

Participants:196

Verdict:Accepted
Score:100 / 100
Submitted:2016-12-03 21:51:47

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 <algorithm>
#include <cstring>
#include <string>
#include <cstdio>
#include <cmath>
#include <queue>
#include <map>
#include <set>
#include<math.h>
#include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include <climits>
using namespace std;
int getStr(char *buffer, int maxLen){
    char c;  // 
    int len = 0;  // 
    // buffer
    // (\n)maxLen
    while( (c=getchar()) != '\n' ){
        buffer[len++]=c;  // buffer
        if(len>=maxLen){
            break;
        }
    }
    buffer[len]='\0';  // 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX