题目背景 [Usaco2008 Jan] [Usaco2008 Jan] 题目描述 N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all know ...
分类:
其他好文 时间:
2019-07-10 01:08:44
阅读次数:
92
重新排列后组成回文串意味着路径上出现奇数次的最多1个,那么可以$dsu\ on\ tree$搞一下了。。。 cpp / mail: mleautomaton@foxmail.com author: MLEAutoMaton This Code is made by MLEAutoMaton / in ...
分类:
其他好文 时间:
2019-07-07 14:17:03
阅读次数:
89
原题链接在这里:https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/ 题目: Given the root of a binary tree, find the maximum value V for ...
分类:
其他好文 时间:
2019-07-07 09:48:28
阅读次数:
124
Reberland Linguistics CodeForces - 666A First-rate specialists graduate from Berland State Institute of Peace and Friendship. You are one of the most ...
分类:
其他好文 时间:
2019-07-06 00:09:13
阅读次数:
112
题目背景 通过套取数据而直接“打表”过题者,是作弊行为,发现即棕名。 这是一道简单的AC自动机模板题。 用于检测正确性以及算法常数。 为了防止卡OJ,在保证正确的基础上只有两组数据,请不要恶意提交。 管理员提示:本题数据内有重复的单词,且重复单词应该计算多次,请各位注意 通过套取数据而直接“打表”过 ...
分类:
其他好文 时间:
2019-07-05 00:11:51
阅读次数:
84
delete 关键词从对象中删除属性,会同时删除属性的值和属性本身,删除完成后,属性在被添加回来之前是无法使用的, delete 操作符被设计用于对象属性。它对变量或函数没有影响。 delete 操作符不应被用于预定义的 JavaScript 对象属性。这样做会使应用程序崩溃。 arguments ...
分类:
Web程序 时间:
2019-06-28 00:18:43
阅读次数:
143
工作中因为各种原因, 例如topic中消息堆积的太多,或者kafka所在磁盘空间满了等等,可能需要彻底清理一下kafka topic,那么如何彻底删除topic?方法一(配置delete.topic.enable=true) 修改kafaka配置文件server.properties, 添加dele ...
分类:
其他好文 时间:
2019-06-20 17:21:30
阅读次数:
161
图 定义:图由边的集合及顶点的集合组成。顶点也有权重, 也称为成本。 如果一个图的顶点对是有序的, 则可以称之为有向图。在对有向图中的顶点对排序后, 便可以在两 个顶点之间绘制一个箭头。 有向图表明了顶点的流向。 如果图是无序的, 则称之为无序图, 或无向图。 图中的一系列顶点构成路径, 路径中所有 ...
分类:
编程语言 时间:
2019-06-15 13:34:36
阅读次数:
106
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2019-06-14 16:30:22
阅读次数:
96