题解列表

筛选

2888: 图像模糊处理

```#includeusingnamespacestd;constintN=1000;doublea[N][N],b[N][N];intc[N][N];intmain(){intn,m;cin>>n>>m;for(inti=1;ia[i][j];b[i][j]=a[i][j];}}for(inti=

单词查找树(python)

摘要:解题思路:注意事项:参考代码:class TrieNode:    def __init__(self):        self.children = {}        self.is_end_o……

求后序遍历(python)

摘要:解题思路:注意事项:参考代码:def build_tree(preorder, inorder):    if not preorder or not inorder:        return N……

求后序遍历

摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode:    def __init__(self, val):        self.val = val        ……

合并果子(python)

摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits):    heap = []    for fruit in fruits:        heap……

校门外的树

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sortTwoArray(int* pArrayA,int*pArrayB,int tot……

题解 2945: 素数对

```c#include#include//函数用于检查一个数是否是素数intis_prime(intnum){if(num