单词查找树(python) 摘要:解题思路:注意事项:参考代码:class TrieNode: def __init__(self): self.children = {} self.is_end_o…… 题解列表 2023年12月17日 0 点赞 0 评论 244 浏览 评分:0.0
sort和unique轻松解决 摘要: #include using namespace std; #define ll long long const int maxn = 1e6 + 50; …… 题解列表 2023年12月17日 0 点赞 0 评论 278 浏览 评分:9.9
1738:排序(C语言)(交换排序法)(简单易懂) 摘要:解题思路: 交换法排序是将每一位数与它之后的所有数字对比,如果发现比它小的数字,那么立即交换这两个数字的位置,连续向后对比直至最后一个数;然后再使用第二个数同样依次向后对比,直到排序完成。交换法排序和…… 题解列表 2023年12月17日 0 点赞 2 评论 625 浏览 评分:9.3
题解 2924: 明明的随机数(超详细) 摘要:```c #include #define MAX 1000 int main() { int N; int nums[MAX + 1] = {0}; // 初始…… 题解列表 2023年12月17日 0 点赞 0 评论 193 浏览 评分:9.9
2833: 金币(简单易懂) 摘要:```c #include #include int main() { int n; int sum = 0; scanf("%d", &n); int num; int …… 题解列表 2023年12月16日 0 点赞 0 评论 252 浏览 评分:9.9
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >> a>…… 题解列表 2023年12月16日 0 点赞 0 评论 139 浏览 评分:0.0
2809: 菲波那契数列(两种方法) 摘要:```c //第一种方法:递归 //性能较差 #include int result(int n) { if (n …… 题解列表 2023年12月16日 0 点赞 0 评论 550 浏览 评分:10.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double n; cin>>n; if(n>0…… 题解列表 2023年12月16日 0 点赞 0 评论 358 浏览 评分:9.9
题解 2816: 统计满足条件的4位数个数(四个for循环,暴力求解) 摘要:```c #include #include int main() { int i = 0; int a, b, c, d; int n, num; scanf( "%d", …… 题解列表 2023年12月16日 0 点赞 0 评论 289 浏览 评分:9.9
2769: 计算并联电阻的阻值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double r1,r2; cin>>r1>>r2;…… 题解列表 2023年12月16日 0 点赞 0 评论 198 浏览 评分:9.9