10 2016 档案
摘要:1 //测试数据 2 //1 2 4 7 -1 -1 -1 5 -1 -1 3 -1 6 -1 -1 3 //1 2 4 11 -1 22 -1 -1 -1 5 -1 -1 3 6 -1 -1 7 -1 -1 4 5 6 #include 7 #include 8 using namespace std; 9 10 template 11 st...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 5 template 6 struct BinaryNode 7 { 8 T element; 9 BinaryNode *left; 10 BinaryNode *right; 11 12 BinaryNode(cons...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 5 template 6 struct BinaryNode 7 { 8 T element; 9 BinaryNode *left; 10 BinaryNode *right; 11 12 BinaryNode(cons...
阅读全文
摘要:http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html
阅读全文
摘要:1 /* 2 8 6 3 1 1 1 1 1 1 1 1 4 1 0 0 1 0 0 1 1 5 1 1 0 0 0 0 0 1 6 1 0 0 1 0 1 0 1 7 1 0 0 0 0 0 0 1 8 1 1 1 1 1 1 1 1 9 */ 10 #include <iostream> ///
阅读全文
摘要:源代码下载地址:链接:https://pan.baidu.com/s/12BTDR8pRMvxpKYNFb988EQ 密码:yk0o
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int n; 10 string ch; 11 cout > n; 13 while (n--) { 14 stack check; 15 ...
阅读全文