hiho week 78 register

Ended

Participants:288

Verdict:Accepted
Score:100 / 100
Submitted:2015-12-27 21:01:25

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 <queue>
using namespace std;
class Trie_tree
{
    public:
        Trie_tree();
        void Add_count();
        int Get_count();
        Trie_tree * child[26];
    private:
        int count;
};
Trie_tree::Trie_tree()
{
    this->count = 0;
    for(int i = 0; i < 26; i++)
    {
        this->child[i] = NULL;
    }
}
void Trie_tree::Add_count()
{
    this->count++;
}
int Trie_tree::Get_count()
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX