[Offer收割]编程练习赛19 register

Ended

Participants:405

Verdict:Wrong Answer
Score:20 / 100
Submitted:2017-07-23 14:01:27

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 <cstdio>
#include<limits>
#include <map>
#include <cstring>
#include <string>
#include <cstdlib>
#include <vector>
using namespace std;
const int MAXN = 10005;
vector<string> dict;
vector<string> dict2;
void init()
{
    string str;
    for(int i=0; i<dict.size(); i++)
    {
        str = dict[i];
        while(dict[i].size() < 8001)
            dict[i] += str;
    }
    int MOD = dict.size() , num = 0;
    while(dict.size() < 1001)
    {
        str = dict[num%MOD];
        dict.push_back(str);
        num += 1;
    }
}
bool is_ok()
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX