随笔分类 - 练习题
记录一些平时写的有用代码
摘要:输入一个字符串,输出简单的压缩 1)单字符串压缩 : 输入:ABBBCCD , 输出AB3C2D 2)多字符串压缩 输入:AABCABCD,输出A(ABC)2D 1)压缩单个字符 #include <iostream> #include <vector> #include <algorithm> #
阅读全文
摘要:#include #include #include #include using namespace std; struct BinaryTree{ int weight; struct BinaryTree *left,*right; }; int subtree_count(const struct BinaryTree *root,int m){...
阅读全文

浙公网安备 33010602011771号