#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef pair<int, int> PII; const int N = -2e9; void merge(vector<PII> ...
分类:
编程语言 时间:
2020-03-31 12:39:01
阅读次数:
101
一棵有根树,并且希望多次询问这棵树上一段路径上所有节点深度的 $k$ 次方和,而且每次的 $k$ 可能是不同的。此处节点深度的定义是这个节点到根的路径上的边数。他把这个问题交给了pupil,但pupil并不会这么复杂的操作,你能帮他解决吗? Solution 对每个次数,预处理树上前缀和即可 ...
分类:
其他好文 时间:
2020-03-30 23:14:17
阅读次数:
73
1.安装 pip install django-rest-swagger 2.配置 rest_api/settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.conte ...
一。 基本操作 1.创建完项目, code . 直接在vscode 中打开 2.设置--首选项 检测 package.json 文件 点击serve 是可以运行 3.常用的vscode 插件 4. 左侧项目文件控制显示隐藏 查看--命令面板 5. 配置代码片段 首选项--用户代码片段 -ts 版本 ...
分类:
其他好文 时间:
2020-03-30 16:10:34
阅读次数:
88
overflow:hidden; //超出的文本隐藏 text-overflow:ellipsis; //溢出用省略号显示 white-space:nowrap; //溢出不换行 (只显示一行) 多行一出隐藏 overflow:hidden; text-overflow:ellipsis; disp ...
分类:
Web程序 时间:
2020-03-30 16:05:45
阅读次数:
372
People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, m ...
分类:
其他好文 时间:
2020-03-30 15:49:03
阅读次数:
81
错误信息:Verify the connector's configuration, identify and stop any process that's listening on port xxxx, or configure this application to listen on ano... ...
分类:
其他好文 时间:
2020-03-30 14:35:32
阅读次数:
311
You have an array of . Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier . Then, e ...
分类:
编程语言 时间:
2020-03-30 09:46:15
阅读次数:
93
一、default:定义全局变量:Global Variable 比如:系统的地址,设置后,在用例中引用 二、如何在测试用例中引用其他测试用例 1、在tsst case 中使用方法,调用其他测试用例call test case 用例名称 2、test suites,不同的测试用例,组合一个测试场景 ...
分类:
其他好文 时间:
2020-03-30 09:40:25
阅读次数:
84
解题思路:采用将多叉树转化为二叉树的方法(即利用孩子兄弟的结点结构)建立二叉树,最后再先序遍历输出即可 #include <stdio.h> #include <malloc.h> #include <string.h> struct TNode { int space;//记录打印空格数 int ...
分类:
其他好文 时间:
2020-03-29 21:15:37
阅读次数:
119