1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >> a>…… 题解列表 2023年12月16日 0 点赞 0 评论 196 浏览 评分:0.0
单词查找树(python) 摘要:解题思路:注意事项:参考代码:class TrieNode: def __init__(self): self.children = {} self.is_end_o…… 题解列表 2023年12月17日 0 点赞 0 评论 311 浏览 评分:0.0
求后序遍历(python) 摘要:解题思路:注意事项:参考代码:def build_tree(preorder, inorder): if not preorder or not inorder: return N…… 题解列表 2023年12月17日 0 点赞 0 评论 304 浏览 评分:0.0
求后序遍历 摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode: def __init__(self, val): self.val = val …… 题解列表 2023年12月17日 0 点赞 0 评论 311 浏览 评分:0.0
合并果子(python) 摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits): heap = [] for fruit in fruits: heap…… 题解列表 2023年12月17日 0 点赞 0 评论 286 浏览 评分:0.0
题解 2861: 验证子串(用isSubstring()函数解决) 摘要:```c #include #include int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b { …… 题解列表 2023年12月17日 0 点赞 0 评论 288 浏览 评分:0.0
校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sortTwoArray(int* pArrayA,int*pArrayB,int tot…… 题解列表 2023年12月17日 0 点赞 0 评论 216 浏览 评分:0.0
题解 2945: 素数对 摘要:```c #include #include // 函数用于检查一个数是否是素数 int is_prime(int num) { if (num …… 题解列表 2023年12月17日 0 点赞 0 评论 452 浏览 评分:0.0
编写题解 3007: 收费 摘要:解题思路:注意事项:不要用int,用double参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a; …… 题解列表 2023年12月17日 0 点赞 0 评论 348 浏览 评分:0.0
题解 1050: [编程入门]结构体之成绩记录(超超超级简单) 摘要:```c #include #include struct student { char shuju[20]; char name[20]; int chinese; int …… 题解列表 2023年12月17日 0 点赞 0 评论 223 浏览 评分:0.0