C++ STL max_element 摘要:## max_element > 核心部分 `min_element(nums.begin()+r,nums.begin()+l+1)` ```c++ #include #inclu…… 题解列表 2023年08月11日 0 点赞 0 评论 529 浏览 评分:0.0
自然数的拆分(dfs) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int N=10010; int …… 题解列表 2023年08月12日 0 点赞 0 评论 974 浏览 评分:7.3
采用二进制移位法,循环一次即可 摘要:解题思路:采用二进制移位法,ABCDEF对应位状态为1是派出,0是留下。循环一次即可。注意事项:参考代码:#include<stdio.h>int main(){ int jieguo,max,num…… 题解列表 2023年08月12日 0 点赞 0 评论 402 浏览 评分:0.0
LETTERS(dfs) 摘要:解题思路: 因为涉及到回溯找最长的 所以最好用dfs递归注意事项: 多练就行了 没啥注意的参考代码:/* 3 6 HFDFFB AJHGDH DGAGEH */ #include<i…… 题解列表 2023年08月13日 0 点赞 0 评论 692 浏览 评分:9.9
二维数组的转置(多种方法) 摘要: 参考代码: 第一种,直接行列互换循环打印, ```c #include int main() { int a[3][3],t; for(int i=0;i…… 题解列表 2023年08月13日 0 点赞 0 评论 401 浏览 评分:0.0
[编程入门]筛选N以内的素数题解 摘要:解题思路:先定义一个判断素数的函数,再从2到n去遍历,如果是素数,则输出。注意事项:素数判断从2写起,注意要小于等于。参考代码:#includeusing namespace std;bool ssp…… 题解列表 2023年08月13日 0 点赞 0 评论 371 浏览 评分:9.9
1391: 震宇大神的杀毒软件,c++代码实现 摘要:##1391: 震宇大神的杀毒软件 ***原题链接:***[震宇大神的杀毒软件](https://www.dotcpp.com/oj/problem1391.html "震宇大神的杀毒软件") *…… 题解列表 2023年08月13日 0 点赞 0 评论 335 浏览 评分:2.0
数据结构-归并排序(C++) 摘要:## 归并排序模板 ```c++ #include #include #include #include using namespace std; const int N = 1e5+…… 题解列表 2023年08月13日 0 点赞 0 评论 611 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理,c++代码实现 摘要:#1045: [编程入门]自定义函数之整数处理 ```cpp #include using namespace std; int a[11]; void out(){//用于输出的函数 …… 题解列表 2023年08月14日 0 点赞 0 评论 375 浏览 评分:0.0
python的咋没题解,我来加一个 摘要:解题思路:使用了一个无限循环来读取输入,直到遇到 EOFError 异常或者文件结束符为止。在每次循环中,它使用 map() 函数将输入的一行拆分为两个整数 a 和 b,并计算它们的和,然后输出结果。…… 题解列表 2023年08月14日 1 点赞 0 评论 700 浏览 评分:9.9