叫啥名
叫啥名
全部文章
分类
归档
标签
去牛客网
登录
/
注册
叫啥名的博客
全部文章
(共81篇)
题解 | 串
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 参考的是题解中第一篇的解法二,我感觉哪个讲的更好一点 #include <iostream> #include <array> us...
2025-05-08
0
8
题解 | 小美的排列询问
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 #include <iostream> #include <algorithm> #include <vector> using...
2025-05-07
0
11
题解 | 数位染色
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 这道题本质是问能不能用给出的数(各个数位)凑出所有数的总和 #include <iostream> #include <bitset>...
2025-05-07
0
10
题解 | 小红的树
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 #include <iostream> #include <vector> using namespace std; const int ...
2025-05-06
0
10
题解 | 不相邻取数
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 #include <iostream> #include <vector> using namespace std; int main()...
2025-05-06
0
11
题解 | 拦截导弹
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 其实只要理解了题目真正要求的就可以了,第一问实际上是问最长不严格递减子序列,第二问我是看的其它题解求的是最长严格递增子序列 #include <ios...
2025-05-06
0
12
题解 | 旅游
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 思路来自其它题解,建议找到题解中阅读量最高的哪个读一遍,然后对照着敲先全局,再main遇到自定义函数时可以先把main敲完也可以跳到自定义函数部分 // ...
2025-05-06
0
11
题解 | 小红的字符生成
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 感觉有点像除2取余,我是从两个一样的字母可以进化成高一级的角度考虑的,上线为z #include <iostream> using namesp...
2025-05-05
0
16
题解 | 小红的排列构造
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 // 我的思路来自题解,首先不是n为1和2时肯定不可能 // n为3时存在3,2,1 // 不是质数等价于存在除1和它本身的因子,而最好凑的因子莫过于2了,所...
2025-05-05
0
14
题解 | 小红的字符串构造
// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 #include <iostream> #include <map> #include <string> #include &l...
2025-05-05
0
12
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页