Problem Description A weird clock marked from 0 to 59 has only a minute hand. It won’t move until a special coin is thrown into its box. There are dif ...
分类:
其他好文 时间:
2017-08-19 21:17:41
阅读次数:
195
from: http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ Step #1: Install OpenCV dependencies on Ubuntu 16.04 Most (in fact, ...
分类:
系统相关 时间:
2017-08-15 12:43:03
阅读次数:
316
度度熊的01世界 度度熊的01世界 Problem Description 度度熊是一个喜欢计算机的孩子,在计算机的世界中,所有事物实际上都只由0和1组成。 现在给你一个n*m的图像,你需要分辨他究竟是0,还是1,或者两者均不是。 图像0的定义:存在1字符且1字符只能是由一个连通块组成,存在且仅存在 ...
分类:
其他好文 时间:
2017-08-12 21:22:23
阅读次数:
183
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 ...
分类:
其他好文 时间:
2017-08-12 21:21:36
阅读次数:
130
1.基本元素选择器 id选择器:$(“#id名称”); 元素选择器:$(“元素名称”); 类选择器:$(“.类名”); 通配符:* 多个选择器共用(并集) 2.层级选择器 ancestor descendant: 在给定的祖先元素下匹配所有的后代元素(儿子、孙子、重孙子) parent > chil ...
分类:
Web程序 时间:
2017-08-12 18:57:34
阅读次数:
212
小C的倍数问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 小C的倍数问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: ...
分类:
其他好文 时间:
2017-08-12 15:28:57
阅读次数:
303
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4027 解题思路:线段树区间更新,查询。主要问题在于如何解决快速对一个区间所有数据开根号然后求和 实际上是根本不用关心这个问题。2^64 在开根号7次之后已经变成1了,继续开根号没意义。 因此,对于每次更 ...
分类:
其他好文 时间:
2017-08-06 18:05:50
阅读次数:
161
1001 度度熊保护村庄 Accepts: 26 Submissions: 703 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 1001 度度熊保护村庄 Accepts: 26 Su ...
分类:
其他好文 时间:
2017-08-06 17:08:29
阅读次数:
473
题目 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. 思路 这一次说的是一个普通的二叉树,给出两个节点。求他们的最低公共父节点。 回忆一下,当这棵二叉树是二分查找树的 ...
分类:
其他好文 时间:
2017-08-05 13:15:52
阅读次数:
129