//拓展运算符//把数组或者类数组展开成用逗号隔开的值// function foo([a, b, c]) {// console.log(a, b, c)// } // let arr = [1, 2, 3]// foo(arr) // function foo(a, b, c) {// cons ...
分类:
其他好文 时间:
2021-02-20 12:33:22
阅读次数:
0
C Continuous City(图的构造) 题目大意:让你构造一个n\le 32的有向无环无重边图,使得从1走到n的所有路径长度在L,R之间,且每种长度的路径只有唯一一条,$L,R\le 1e6$ 构造图的妙妙题目 先考虑$[1,2^{k}]$的情况 利用归纳法构图 假设已经构造完$[1,2^{ ...
分类:
其他好文 时间:
2021-02-18 13:46:08
阅读次数:
0
题意 思路 首先推一下01分数规划的式子,\(\frac{\sum_{e \in C} w_e}{|C|} > \lambda \Leftrightarrow \sum_{e \in C} w_e > \lambda |C| \Leftrightarrow \sum_{e \in C} (w_e - ...
分类:
其他好文 时间:
2021-02-18 13:32:37
阅读次数:
0
(1) It Has To Work. (2) No matter how hard you push and no matter what the priority, you can't increase the speed of light. (2a) (corollary). No matte ...
分类:
Web程序 时间:
2021-02-18 13:21:47
阅读次数:
0
遇到两个报错: 第一个权限问题报错,好解决 startForeground requires android.permission.FOREGROUND_SERVICE Manifest给下权限就行 <manifest ...> ... <uses-permission android:name=" ...
分类:
移动开发 时间:
2021-02-18 13:21:34
阅读次数:
0
一、题目描述 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 ...
分类:
其他好文 时间:
2021-02-18 13:06:38
阅读次数:
0
1047 Student List for Course Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, ...
分类:
其他好文 时间:
2021-02-17 14:09:06
阅读次数:
0
1.重命名 git branch -m oldBranchName newBranchName 2.删除远程分支:git push origin :oldBranchName 3.将重命名过的分支提交:git push origin newBranchName 4.新建分支 : git branch ...
分类:
其他好文 时间:
2021-02-15 12:07:38
阅读次数:
0
恢复内容开始 ##DockerFile 1.编写一个dockerfile文件 2.docker build构建成一个镜像 3.docker run 运行镜像 4.docker push 发布镜像(DockerHub、阿里云镜像仓库) ###很多官方镜像都是基础包,很多功能都没有,通常会自己构建。 # ...
分类:
其他好文 时间:
2021-02-10 13:21:29
阅读次数:
0
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { int n=nums.size(); vector<vector<int>>ans; if(n<3) return{}; sort(nums.begi ...
分类:
其他好文 时间:
2021-02-08 11:52:34
阅读次数:
0