随笔分类 -  Trie

摘要:Monkey A lives on a tree, he always plays on this tree. One day, monkey A learned about one of the bit-operations, xor. He was keen... 阅读全文
posted @ 2018-07-15 21:05 Assassin_poi君 阅读(200) 评论(0) 推荐(0) 编辑
摘要:typedef struct Node* node;struct Node{ int val; int num; node Next[2]; Node() { val = num = 0; memset(Next,NULL,sizeof(Next)); }};vo... 阅读全文
posted @ 2018-07-15 15:26 Assassin_poi君 阅读(139) 评论(0) 推荐(0) 编辑
摘要:John is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of products, every proce... 阅读全文
posted @ 2018-07-15 15:22 Assassin_poi君 阅读(137) 评论(0) 推荐(0) 编辑
摘要:Zeus 和 Prometheus 做了一个游戏,Prometheus 给 Zeus 一个集合,集合中包含了N个正整数,随后 Prometheus 将向 Zeus 发起M次询问,每次询问中包含一个正整数 S ,之后 Zeus 需要在集合当中找出一个正整数 K ,使... 阅读全文
posted @ 2018-07-15 12:20 Assassin_poi君 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个... 阅读全文
posted @ 2018-07-15 11:24 Assassin_poi君 阅读(108) 评论(0) 推荐(0) 编辑
摘要:题目:点击打开链接代码:#include #include #include #include #include using namespace std;char s[15];typedef struct Node* node;struct Node{ int Num... 阅读全文
posted @ 2018-07-15 11:20 Assassin_poi君 阅读(128) 评论(0) 推荐(0) 编辑
摘要:char s[MAXN];typedef struct Node* node;struct Node{ int Num;//常见的是存数,具体的根据题更改 node Next[26]; Node() { Num = 0; memset(Next,NULL,siz... 阅读全文
posted @ 2018-07-15 10:32 Assassin_poi君 阅读(105) 评论(0) 推荐(0) 编辑
摘要:You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language.... 阅读全文
posted @ 2018-07-15 10:11 Assassin_poi君 阅读(130) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示