hiho week 259 register

Ended

Participants:95

Verdict:Accepted
Score:100 / 100
Submitted:2019-06-19 22:12:54

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 <memory.h>
#include <string.h>
using namespace std;
//
int main()
{
    int arrayCount = 0;
    cin>>arrayCount;
    if(arrayCount<=0 || arrayCount>100)
    {
        return -1;
    }
    char (*arrayName)[100] = new char[arrayCount][100];
    memset(arrayName,0,100*arrayCount*sizeof(char));
    int offset = 'a' - 'A';
    for(int i=0;i<arrayCount;++i)
    {
        char temp[100] = {0};
        cin>>temp;
        int position=0;
        int tempLen = strlen(temp);
        for(int j=0;j<tempLen;++j)
        {
            if(position == 98)
            {
                break;
            }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX