题解列表

筛选

1004: [递归]母牛的故事c++实现

摘要:# 题目 1004: [递归]母牛的故事 **以下仅为我个人的做法,请多多指教** **方法一:** ```c++ #include using namespace std; int……

对称二叉树(tree_c)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; string a; int s,s1; int main() { ……

白细胞计数(java)

摘要:解题思路:第一个for循环用来给a数组赋值并且求出最大值,最小值,总和。第一个for循环结束后紧接着求出平均值。第二个for循环将数值给b数组(除了最大值和最小值)。 第三个for循环求出有效样本(即……

1322: 沙子合并

摘要:```cpp #include using namespace std; #define maxn 1001 #define INF 1……

2770: 计算浮点数相除的余数

摘要:解题思路:函数注意事项:最基础的方法,适合初学者参考代码:#include <stdio.h>#include <math.h>double a, b, r;int main() { scanf("%……

收集瓶盖赢大奖

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b;    cin>>a>>b;    ……