邮局选址问题:贪心策略-横纵坐标中位数 摘要:解题思路: 贪心策略, 横纵坐标中位数注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const&nb…… 题解列表 2025年05月02日 0 点赞 0 评论 71 浏览 评分:0.0
三种方法求解斐波那契数列 摘要:方法一:递推法#include<bits/stdc++.h>usingnamespacestd;intmain(){&nbs…… 题解列表 2025年05月01日 0 点赞 0 评论 179 浏览 评分:10.0
明明的随机数(set容器自动排序和去重) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年05月01日 1 点赞 0 评论 179 浏览 评分:10.0
数列排序(C++)笔记 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 223 浏览 评分:0.0
单词个数统计(C++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 184 浏览 评分:10.0
set与stringstream字符串流 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 134 浏览 评分:10.0
1074,直接通过模运算来解决 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int isM(char *n) { int …… 题解列表 2025年05月01日 0 点赞 1 评论 162 浏览 评分:10.0
T1004 母牛递归 摘要:解题思路:注意事项:参考代码:def f(n): if m[n]!=0: return m[n]  …… 题解列表 2025年05月01日 1 点赞 0 评论 659 浏览 评分:0.0
T1003 密码破译 摘要:解题思路:注意事项:参考代码:s=input()lst=[]lst=[ord(i) for i in s]for i in lst: i=chr(i+4) &nb…… 题解列表 2025年05月01日 1 点赞 0 评论 479 浏览 评分:0.0
题解 1072: 汽水瓶,递归 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int num;//可以喝的汽水数量void fun(int len) {//len是空瓶子数量 …… 题解列表 2025年05月01日 1 点赞 0 评论 139 浏览 评分:0.0