struct BinaryTreeNode { int m_nValue; BinaryTreeNode* m_pLeft; BinaryTreeNode* m_pRight; }; bool HasSubTree(BinaryTreeNode* pRoot1, BinaryTreeNode* pR ...
分类:
其他好文 时间:
2021-02-18 13:43:33
阅读次数:
0
正题 题目链接:https://www.ybtoj.com.cn/problem/893 题目大意 给出一张$n$个点$m$条边的无向联通图,每条边正反向各有$A,B,C$三种边权。 保证满足 \(A_{x,y}=-A_{y,x}\ ,\ B_{x,y}=B_{y,x}\ ,\ C_{x,y}=-C ...
分类:
其他好文 时间:
2021-02-18 12:55:29
阅读次数:
0
思路1: 暴力枚举。 实现1: 1 class Solution 2 { 3 public: 4 int findKthPositive(vector<int>& arr, int k) 5 { 6 int n = arr.size(); 7 vector<int> cnt(2001, 0); 8 ...
分类:
其他好文 时间:
2021-02-18 12:54:30
阅读次数:
0
Markdown # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Duplicate Header ### Duplicate Header H1 H2 H3 H4 H5 H6 Duplicate Header Duplicate Header Pa ...
分类:
其他好文 时间:
2021-02-17 14:15:02
阅读次数:
0
地址 https://leetcode-cn.com/problems/ba-zi-fu-chuan-zhuan-huan-cheng-zheng-shu-lcof/ 写一个函数 StrToInt,实现把字符串转换成整数这个功能。不能使用 atoi 或者其他类似的库函数。 首先,该函数会根据需要丢弃 ...
分类:
其他好文 时间:
2021-02-17 14:11:25
阅读次数:
0
前面的练习可以看出ListView第一列可以是复选框便于操作人员勾选,那么我们有时候需要计算勾选了多少行,勾选的行flow1和,flow1最大值、最小值。本篇博客使用c脚本完成上述目的。我们还是使用前面博客里面的数据库做练习,建立4个内部文本变量,名字分别为CurDate、flow1、flow2、f ...
#include<bits/stdc++.h> using namespace std; const int maxn=1e5+100; const int inf=1e9; int n,m,x; int dep[maxn];//节点在第几层 int num[maxn];//每一层的节点个数 int ...
分类:
其他好文 时间:
2021-02-15 11:49:10
阅读次数:
0
原题 1 class Solution: 2 def summaryRanges(self, nums: List[int]) -> List[str]: 3 left,right,lens,ans = 0,0,len(nums),[] 4 while left < lens: 5 right = ...
分类:
其他好文 时间:
2021-02-15 11:47:09
阅读次数:
0
#独立按键 原理图: **基本原理:**按下为后,P3^1低电平。松开为高电平。 #####实现按动一下独立按键1,LED模块第一个灯的状态变化一次 #include<reg52.h> //按动一下独立按键1,LED模块第一个灯的状态变化一次 //原理:按键按下时,P3^1的电压为低电平 //定义使 ...
分类:
其他好文 时间:
2021-02-06 12:03:12
阅读次数:
0
1 //生成三种基元 矩形 十字 椭圆 2 cv::Mat my_get_morph_struct_element(cv::MorphShapes shapeType, cv::Size s) 3 { 4 CV_Assert(shapeType == cv::MORPH_RECT || shapeT ...
分类:
其他好文 时间:
2021-02-02 10:35:04
阅读次数:
0