摘要:
Tom and Jerry are playing a game with tubes and pearls. The rule of the game is:1) Tom and Jerry come up together with a number K.2) T... 阅读全文
摘要:
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... 阅读全文
摘要:
typedef struct Node* node;struct Node{ int val; int num; node Next[2]; Node() { val = num = 0; memset(Next,NULL,sizeof(Next)); }};vo... 阅读全文
摘要:
John is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of products, every proce... 阅读全文
摘要:
Zeus 和 Prometheus 做了一个游戏,Prometheus 给 Zeus 一个集合,集合中包含了N个正整数,随后 Prometheus 将向 Zeus 发起M次询问,每次询问中包含一个正整数 S ,之后 Zeus 需要在集合当中找出一个正整数 K ,使... 阅读全文
摘要:
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个... 阅读全文
摘要:
题目:点击打开链接代码:#include #include #include #include #include using namespace std;char s[15];typedef struct Node* node;struct Node{ int Num... 阅读全文
摘要:
char s[MAXN];typedef struct Node* node;struct Node{ int Num;//常见的是存数,具体的根据题更改 node Next[26]; Node() { Num = 0; memset(Next,NULL,siz... 阅读全文
摘要:
转载自:大佬传送门/******************************************************* Name : sscanf.c ** Author : gzshun** Version : 1.... 阅读全文
摘要:
You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language.... 阅读全文