编写题解 1100: 采药 摘要:解题思路:1把大问题转换成小问题,然后递归.2写出最小问题的初始状态。3用一个数组记录各层问题的中间计算结果,避免重复计算。参考代码:#include <stdio.h> #include <std…… 题解列表 2024年07月10日 0 点赞 0 评论 308 浏览 评分:0.0
时间和哥哥回归回归回归回归回归健康的规划 摘要:解题思路:无注意事项:无参考代码:m=input()m=int(m)r=[]j=0for w in range(2,m+1): j=1 r=[] r.append(1) …… 题解列表 2024年07月10日 0 点赞 0 评论 261 浏览 评分:0.0
1169 绝对值排序(sort排序) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;bool compare(…… 题解列表 2024年07月10日 0 点赞 0 评论 195 浏览 评分:0.0
题解 2968: 区间内的真素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int Real(int a){ if(a<2) return 0; …… 题解列表 2024年07月10日 0 点赞 0 评论 205 浏览 评分:0.0
2968: 区间内的真素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll fanzhuan(ll x){ …… 题解列表 2024年07月10日 0 点赞 0 评论 224 浏览 评分:0.0
1999: 回文判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll fanzhuan(ll x){ …… 题解列表 2024年07月10日 0 点赞 0 评论 204 浏览 评分:0.0
题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll a[100000],b[10000…… 题解列表 2024年07月10日 0 点赞 0 评论 183 浏览 评分:0.0
1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll qinhe(ll x){ l…… 题解列表 2024年07月10日 0 点赞 0 评论 255 浏览 评分:0.0
题目 1072: 汽水瓶,C++实现,超级简单 摘要:##题目 1072: 汽水瓶,C++实现,超级简单 ######原题链接[题目 1072: 汽水瓶](https://www.dotcpp.com/oj/problem1072.html "题目 1…… 题解列表 2024年07月10日 0 点赞 0 评论 306 浏览 评分:0.0
编写题解 1134: C语言训练-求PI* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { double sum=0; char b=1; long long s=1; for(…… 题解列表 2024年07月10日 0 点赞 0 评论 343 浏览 评分:0.0