已注销
已注销
全部文章
分类
归档
标签
去牛客网
登录
/
注册
已注销的博客
全部文章
(共9篇)
题解 | 而后单调
#include <iostream> #include <map> #include <vector> using namespace std; /* 最朴素的想法。如果而后单调,那么肯定满足一下条件: 1. 不包含重复元素。 2. 原始数组存在一个至少长...
2025-05-11
0
78
题解 | #走方格的方案数#
#include <cstring> #include <iostream> using namespace std; int dp[10][10]; int main() { int m,n; cin>>m>>n; m++;...
2024-09-21
0
116
题解 | #公共子串计算#
#include <cstring> #include <iostream> #include <vector> using namespace std; // 初始化一个数组用来滚动保存状态,st[k]表示以a串m索引字符开头和b串n索引字符开头的长度为k的...
2024-09-20
0
106
题解 | #24点游戏算法#
#include <any> #include <iostream> #include <type_traits> #include <vector> using namespace std; bool flag = false; void dfs(...
2024-09-20
0
120
题解 | #字符串加解密#
#include <cctype> #include <iostream> using namespace std; void encode(string& s){ for(auto ch:s){ if(isalpha(ch)){ ...
2024-09-19
0
132
题解 | #查找兄弟单词#
#include <iostream> #include <unordered_map> #include <unordered_set> #include <algorithm> #include <vector> using names...
2024-09-19
0
127
题解 | #高精度整数加法#
#include <iostream> #include <vector> using namespace std; int main() { string a, b; cin >> a >> b; int flag = 0; ...
2024-09-19
0
96
题解 | #从单向链表中删除指定值的节点#
#include <cstring> #include <iostream> using namespace std; int ne[10010]; int main() { int n ; int hn; cin >> n >>...
2024-09-19
0
135
题解 | #挑7#
#include <iostream> using namespace std; bool find7(int n){ if(n%7==0)return true; while(n){ if(n%10==7)return true; n ...
2024-09-19
0
105