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

Ended

Participants:430

Verdict:Wrong Answer
Score:60 / 100
Submitted:2017-08-20 13:07: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<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#include<queue>
#include<functional>
#include<map>
#include<cmath>
#include<iostream>
#include<string>
#include<set>
using namespace std;
typedef long long LL;
const LL mod = 1e9 + 7;
int n;
struct node {
    map<string, int> child;
    vector<string> file;
    vector<int> r;
};
vector<node> tree;
char tmps[500000 + 10];
string s;
vector<string> ans;
void dfs(string cur_s, int u) {
    for (int i = 0; i < tree[u].file.size(); i++) {
        ans[tree[u].r[i]] = cur_s + tree[u].file[i];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX