链接:https://leetcode-cn.com/problems/binary-tree-inorder-traversal/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo ...
分类:
其他好文 时间:
2020-07-18 11:34:31
阅读次数:
66
Three Pairwise Maximums #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=2e5+3; typedef long long ll; const ll inf=1e18; ...
分类:
其他好文 时间:
2020-07-18 11:29:01
阅读次数:
89
链接:https://leetcode-cn.com/problems/unique-binary-search-trees/ 代码 class Solution { public: int numTrees(int n) { vector<int> f(n + 1); f[0] = 1; for ...
分类:
其他好文 时间:
2020-07-18 11:25:21
阅读次数:
56
力扣链接:https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof/ 题目描述 请定义一个队列并实现函数 max_value 得到队列里的最大值,要求函数max_value、push_back 和 pop_front 的均摊时间复杂度都是 ...
分类:
其他好文 时间:
2020-07-18 00:40:15
阅读次数:
67
https://codeforces.com/problemset/problem/489/C C. Given Length and Sum of Digits... You have a positive integer m and a non-negative integer s. Your ...
分类:
其他好文 时间:
2020-07-17 22:18:10
阅读次数:
71
"""1.学习目标 掌握元素其他属性的获取方法2.操作步骤(语法) 2.1 必须掌握 元素.text 获取元素文本 元素文本指的是标签之间的文字 元素.get_attribute("属性名") 获取对应属性名的值 元素.is_displayed() 判断元素是否可见 返回布尔值 true false ...
分类:
其他好文 时间:
2020-07-17 22:09:13
阅读次数:
93
题目链接 题目传送门 简要题意 有一个长度为 \(k\) 的数组 \(a\),每次可以选择一个 $1\le i\le k$,让 \(a_i\) 加上 \(k-1\),并对于所有的 \(j\ne i\) 让 \(a_j\) 减掉 $1$,任何时候必须保证 \(a\) 数组非负。 求通过任意多次(可以为 ...
分类:
其他好文 时间:
2020-07-17 19:47:56
阅读次数:
80
Content ZJU-ICPC Summer 2020 Contest 4 by Group A Problem F. Magical String ZJU-ICPC Summer 2020 Contest 4 by Group A Problem F. Magical String 给定一个一个 ...
分类:
其他好文 时间:
2020-07-17 19:24:42
阅读次数:
54
Content ZJU-ICPC Summer 2020 Contest 4 by Group A Problem F. Magical String ZJU-ICPC Summer 2020 Contest 4 by Group A Problem F. Magical String 给定一个一个 ...
分类:
其他好文 时间:
2020-07-17 16:23:39
阅读次数:
72
http://poj.org/problem?id=2406 http://poj.org/problem?id=1961 几乎是一个题 1961是对于第 \(i\) 位,求 \([1,i]\) 能不能由一段字符循环一次以上组成,输出 \(i\) 和这样的长度最小的循环节循环次数 2406是只对第 ...
分类:
其他好文 时间:
2020-07-17 13:49:40
阅读次数:
47