6815.【2020.10.06提高组模拟】树的重心 Description 给定一棵大小为 n 的树, 求所有大小为 k 的连通块的编号较小的重心的权值和. Solution 首先, 一个点是重心的充要条件是 : 1.\(siz_u \geq \lceil \frac{k}{2} \rceil\) ...
分类:
其他好文 时间:
2020-10-10 16:38:59
阅读次数:
31
Difficulty: Easy Related Topics: Linked List Link: https://leetcode.com/problems/reverse-linked-list/ Description Reverse a singly linked list. 反转一个单链 ...
分类:
其他好文 时间:
2020-10-09 20:50:36
阅读次数:
22
OpenJudge-1.3编程基础之算术表达式与顺序执行-13:反向输出一个三位数 总Time Limit: 1000ms Memory Limit: 65536kB Description 将一个三位数反向输出。 Input 一个三位数n。 Output 反向输出n。 Sample Input 1 ...
分类:
其他好文 时间:
2020-10-08 19:45:10
阅读次数:
30
1.类 /* File : batchcim Purpose : A COMMON CLASS FOR CIMLOAD FROM EXTERNAL PROGRAM Syntax : Description : Compatibility with PROGRESS OPENEDGE 10.1A an ...
分类:
其他好文 时间:
2020-10-07 21:13:56
阅读次数:
33
Q1:xpinyin模块打包之后显示找不到指定文件Mandarin.dat description: 见标题 answer: 在Anaconda\Lib\site-packages\xpinyin路径下找到__init__.py 然后在__init__.py中编辑,找到 data_path = os ...
分类:
其他好文 时间:
2020-10-05 22:32:11
阅读次数:
56
价格表可用于展示企业产品: 实例 <ul class="pricing-table"> <li class="title">Basic</li> <li class="price">$19.99</li> <li class="description">Great for small busines ...
分类:
其他好文 时间:
2020-09-24 21:27:51
阅读次数:
39
日常工作中写接口时,往往需要校验前端传来的枚举状态码,例如"1","2"等等, 这里使用java 303规范的参数校验框架封装一个自定义参数校验器: /** * @author: yq * @date: 2020/9/22 22:15 * @description 自定义参数校验注解,加在指定的需要 ...
分类:
其他好文 时间:
2020-09-24 20:57:42
阅读次数:
101
这个实战就是模拟一下登录接口,支付接口,调一下自动化脚本 1.支付接口:请求添加headers,固定返回值,如下: [{ "description":"demo13=支付接口", "request":{ "method":"POST", "uri":"/trade/purchase", "heade ...
分类:
其他好文 时间:
2020-09-21 12:01:29
阅读次数:
36
package com.example.lettcode.dailyexercises; /** * @Class InvertTree * @Description 226 * 翻转一棵二叉树。 * <p> * 示例: * 输入: * **** 4 * ** / \ * ** 2 7 * * / ...
分类:
其他好文 时间:
2020-09-18 03:02:57
阅读次数:
34
package LeetCode_463 /** * 463. Island Perimeter * https://leetcode.com/problems/island-perimeter/description/ * * You are given row x col grid repres ...
分类:
其他好文 时间:
2020-09-17 23:30:18
阅读次数:
36