1004: [递归]母牛的故事c++实现 摘要:# 题目 1004: [递归]母牛的故事 **以下仅为我个人的做法,请多多指教** **方法一:** ```c++ #include using namespace std; int…… 题解列表 2023年05月02日 0 点赞 0 评论 384 浏览 评分:8.0
对称二叉树(tree_c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; string a; int s,s1; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 284 浏览 评分:8.0
凭啥我Java没有优质题解!!!最详细Java题解。 摘要: package Dotcpp; import java.util.Scanner; public class 题目1011__最大公约数与最小公倍数…… 题解列表 2023年05月06日 0 点赞 0 评论 405 浏览 评分:8.0
蓝桥杯2023年第十四届省赛真题-冶炼金属—二分算法 摘要:解题思路:求最大值和最小值,可以考虑二分注意事项:参考代码:#include<iostream>using namespace std;long long a[10005][3],n;int chec…… 题解列表 2023年05月07日 0 点赞 0 评论 1188 浏览 评分:8.0
白细胞计数(java) 摘要:解题思路:第一个for循环用来给a数组赋值并且求出最大值,最小值,总和。第一个for循环结束后紧接着求出平均值。第二个for循环将数值给b数组(除了最大值和最小值)。 第三个for循环求出有效样本(即…… 题解列表 2023年05月12日 0 点赞 0 评论 523 浏览 评分:8.0
1322: 沙子合并 摘要:```cpp #include using namespace std; #define maxn 1001 #define INF 1…… 题解列表 2023年05月13日 0 点赞 0 评论 717 浏览 评分:8.0
2770: 计算浮点数相除的余数 摘要:解题思路:函数注意事项:最基础的方法,适合初学者参考代码:#include <stdio.h>#include <math.h>double a, b, r;int main() { scanf("%…… 题解列表 2023年05月13日 0 点赞 0 评论 1144 浏览 评分:8.0
转换成每一步代价不等的最短路问题,采用优先队列(堆)解决 摘要:解题思路:设堆顶的状态为x,y,fat,time。那么从x,y向四个方向搜索下一个点tx,ty时,有的方向会因为肥胖问题无法移动,这时我们减小身材,让他能达到tx,ty这个点(注意身材减小为1时,一定…… 题解列表 2023年05月17日 0 点赞 0 评论 410 浏览 评分:8.0
收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年05月20日 0 点赞 0 评论 323 浏览 评分:8.0
2896: 二维数组右上左下遍历 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int row,col; int a[150][150]; int i…… 题解列表 2023年05月20日 1 点赞 0 评论 363 浏览 评分:8.0