Tree of Tree Time Limit: 1000MS Memory Limit: 32768KB 64bit IO Format: %lld & %llu Description You're given a tree with weights of each node, you need ...
分类:
其他好文 时间:
2017-05-14 16:05:45
阅读次数:
169
3813: 奇数国 Description 在一片美丽的大陆上有100000个国家,记为1到100000。这里经济发达,有数不尽的账房,并且每个国家有一个银行。某大公司的领袖在这100000个银行开户时都存了3大洋,他惜财如命,因此会不时地派小弟GFS清点一些银行的存款或者让GFS改变某个银行的存款 ...
分类:
其他好文 时间:
2017-05-14 14:55:42
阅读次数:
152
蒟蒻有生之年终于切掉了这道题……在陈丽杰的sam课件上就有这道题,但是zcysky太菜一直不敢做。 其实现在做一下,发现这个题目并不是太难。 所谓的出现次数就是这个字符串在SAM上跑完对应的right集合。要支持及时插入,也就是要动态的维护Parent树的形态。 “动态”,“树”,我们很明显本能的会 ...
分类:
其他好文 时间:
2017-05-14 10:47:02
阅读次数:
228
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:
其他好文 时间:
2017-05-14 10:36:53
阅读次数:
155
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2017-05-14 00:49:11
阅读次数:
311
CGI CGI, Common Gateway Interface, is a tool for HTTP server to contact with programs on other servers, which can be used into any languages with stan ...
分类:
Web程序 时间:
2017-05-13 23:20:22
阅读次数:
310
数塔 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 22488 Accepted Submission(s): 13555 Problem D ...
分类:
其他好文 时间:
2017-05-13 22:16:43
阅读次数:
152
MySQL中使用INNER JOIN来实现Intersect并集操作 一、业务背景 我们有张表设计例如以下: CREATE TABLE `user_defined_value` ( `RESOURCE_ID` varchar(20) DEFAULT NULL, `COLUMN_NAME` varch ...
分类:
数据库 时间:
2017-05-13 22:04:34
阅读次数:
474
重置 MySQL 自增列 AUTO_INCREMENT 初时值 注意, 使用以下任意方法都会将现有数据删除. 方法一: delete from tb1; ALTER TABLE tbl AUTO_INCREMENT = 100; (好处, 可以设置 AUTO_INCREMENT 为任意值开始) 提示 ...
分类:
数据库 时间:
2017-05-13 20:10:25
阅读次数:
237
1.背景 为了调查上海市的平均工资,怎么才能得到一个比较真实的值。 2.分析 一个可行的方法是可以通过抽样来计算平均工资,即通过样本的均值来估计总体的均值。 LOLN: The average of many independent samplesis(withhighprobability) cl ...
分类:
其他好文 时间:
2017-05-13 20:00:49
阅读次数:
228