摘要: 定义: 子串:必须连续 子序列:可以不连续 对比的回文序列和子串问题可以发现:如果是子串问题的话,涉及到子串问题的题目都有一个清0和记录最大值的过程,如果是子序列问题的话就不需要了。 子串 or 子序列 阅读全文
posted @ 2023-05-12 11:06 ZZQ323 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 调试错误 #include <iostream> #include <cstring> using std::cin; using std::cout; using std::endl; using std::string; class CVector { int *_data; int _n; p 阅读全文
posted @ 2023-05-10 11:40 ZZQ323 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 问题代码 报错: [Error] expected unqualified-id before 'long' [Note] in expansion of macro 'll' #include <cctype> #include <cmath> #include <cstdio> #include 阅读全文
posted @ 2023-05-07 08:59 ZZQ323 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 永远想不到汉字的utf-8 gcc 编码其实是三个字符,我是在云IDE发现的..... #include<bits/stdc++.h> using namespace std; //A>K>Q>J>>10>9>...>3>2 struct Card{ char name[10]; int color 阅读全文
posted @ 2023-04-05 11:16 ZZQ323 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 2023.3.21 今天终于把trie给讲了,虽然不是很顺利,讲的也不是很好; 一周一个专题,每次讲给自己听? 打算先学数学?!顺便过掉期末的三个数学;cf atc感觉好多数学题,不会数学不行;(图论也是数学md....) 在刷数学的同时忙一个专题,要很细,每次要产出;除了课内涉及到的专题"搜索,贪 阅读全文
posted @ 2023-03-19 23:41 ZZQ323 阅读(7) 评论(0) 推荐(0) 编辑