母牛生小牛-题解(C++代码) 摘要:```cpp #include using namespace std; long long num(long long n) { long long i,a[n+1]; a[0]=0…… 题解列表 2020年04月01日 0 点赞 0 评论 997 浏览 评分:9.9
C语言训练-素数问题-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ int n; cin>>n; bool b…… 题解列表 2020年04月01日 0 点赞 0 评论 555 浏览 评分:0.0
误落迷宫2-题解(C++代码)BFS 摘要:搜索两次即可,第一步从S到T,第二步从T到E,两步的步数加起来就是答案 ```cpp #include using namespace std; const int maxn=55; st…… 题解列表 2020年04月01日 0 点赞 0 评论 856 浏览 评分:8.0
找寻小妖-题解(C++代码)广度优先搜索 摘要:```cpp #include using namespace std; const int maxn=105; struct node { int x,y,lev; }; …… 题解列表 2020年04月01日 0 点赞 0 评论 686 浏览 评分:0.0
小O的字符-题解(C++代码)最简单的思路 摘要: 其实怎么判断包含关系很简单,A包含B当且仅当对于B中的任意字符c,A中c字符的数量大于等于B中c字符的数量。 道理很浅显,如果A中的某个字符数量没有B中多,无论怎么交换A都不可能变成B。如果A中…… 题解列表 2020年04月01日 0 点赞 0 评论 1300 浏览 评分:8.0
数据结构-图的遍历——DFS深度优先搜索-题解(C++代码) 摘要: dfs,这里本来用邻接表的,发现可用可不用 #include #include using namespace std; i…… 题解列表 2020年03月31日 0 点赞 0 评论 1008 浏览 评分:0.0
P1002-题解(C++代码) 摘要:结构体+临时变量搞定~ AC代码: ```cpp #include struct node{ char stname[21]; int avescore; int pin…… 题解列表 2020年03月31日 0 点赞 0 评论 917 浏览 评分:9.9
小O的溢出 (C++代码)记忆化搜索30行 摘要:```cpp #include using namespace std; int n,m,a[105],dp[105][10005]; int DFS(int i,int hp) /…… 题解列表 2020年03月31日 0 点赞 0 评论 910 浏览 评分:9.9
小O的数字-题解(C++代码)最短最暴力的代码 摘要:```cpp #include using namespace std; string s[10][6]; void init() { s[1][1]=s[1][2]=s[1][…… 题解列表 2020年03月31日 0 点赞 1 评论 901 浏览 评分:9.9
C语言训练-阶乘和数*-题解(C++代码),STL进行字典排序,很好用啊 摘要:```cpp #include #include #include using namespace std; bool cmp(string a,string b){ ret…… 题解列表 2020年03月31日 0 点赞 0 评论 810 浏览 评分:0.0