#include<bits/stdc++.h> using namespace std; const int N = 300010; vector<int>p[N]; int ans[N]; int main() { int t; scanf("%d",&t); while(t --) { int ...
分类:
其他好文 时间:
2020-10-05 21:46:03
阅读次数:
23
在导航栏 点击数据 选择 数据格式验证 设置 选择序列 来源中选择 需要的数据 右键BZJGJ选择查看代码 复制代码保存 Option Explicit Sub Worksheet_Change(ByVal Target As Range) '让数据有效性选择 可以多选,重复选 Dim rngDV ...
分类:
其他好文 时间:
2020-09-24 20:52:55
阅读次数:
58
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
分类:
其他好文 时间:
2020-09-24 00:03:11
阅读次数:
34
转自:https://blog.csdn.net/weixin_43064185/article/details/89534830 STR_TO_DATE(str,format)函数是将时间格式的字符串(str),按照所提供的显示格式(format)转换为DATETIME类型的值。DATE_FORM ...
分类:
数据库 时间:
2020-09-23 23:46:20
阅读次数:
48
最大子矩阵 1,借助最大连续子序列和来取得最大子矩阵 def MaxSubArray(nums): n = len(nums) dp = [] dp.append(nums[0]) mymax = dp[0] startidx = 0 endidx = 0 for i in range(1, n): ...
分类:
其他好文 时间:
2020-09-18 17:15:02
阅读次数:
29
本文链接:https://blog.csdn.net/lzz957748332/article/details/23737701 zip是build-in方法 而izip是itertools中的一个方法 这两个方法的作用是相似的,但是具体使用中有什么区别呢?今天来探究一下。 zip 文档中这样描述: ...
分类:
编程语言 时间:
2020-09-18 12:28:11
阅读次数:
41
jenkins是一款很好的CI(持续集成)工具,但是在常规化部署时如果碰到很多job需要构建和改变代码分支进行部署时还是挺麻烦的,所以考虑实现自动化。*#--coding:utf-8-*-#pipinstallpython-jenkinsimportjenkinsimportredefGetYaml():yamlPath=os.path.join(os.getcwd(),"Jenkins
分类:
编程语言 时间:
2020-09-18 02:27:58
阅读次数:
49
课堂练习: 将文字对应的索引打印出来 test = input(">>>>>") for item in range(len(test)): print(item) ...
分类:
编程语言 时间:
2020-09-18 01:30:41
阅读次数:
38
def num(): for i in range(1,4): print(i,"发送出去") a = yield i print(a,"接受外部参数") i = num() nu = i.__next__() print(nu,"接收迭代参数") while True: try: print(nu ...
分类:
编程语言 时间:
2020-09-18 00:53:08
阅读次数:
38
方法一:BFS模板的应用。 总结的DFS、BFS模板参考:https://www.cnblogs.com/panweiwei/p/13065661.html class Solution(object): # BFS def kthLargest(self, root, k): """ :type ...
分类:
其他好文 时间:
2020-09-18 00:03:27
阅读次数:
35