Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:
其他好文 时间:
2014-08-13 14:39:26
阅读次数:
153
1050: [HAOI2006]旅行comfTime Limit:10 SecMemory Limit:162 MBSubmit:1307Solved:632[Submit][Status]Description给你一个无向图,N(Na then fa[a]:=find(fa[a]); 7 exi....
分类:
其他好文 时间:
2014-08-13 14:24:06
阅读次数:
252
原文译至:http://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/
我是怎么出于各种目的(如modem,连接空的module或连接到一个dumb终端)在Linux下检查并配置串口的呢?
Linux 提供了各种工具. Linux 使用 ttySx 作为一个串口设备的名称. 例如, COM1 (DOS/...
分类:
系统相关 时间:
2014-08-13 13:12:26
阅读次数:
478
在Fedora 13 系统上编译busybox(非交叉编译)产生错误
root@localhost # make
...
gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wularations -Wdeclaration-after-statement -Wold-style-defini...
分类:
其他好文 时间:
2014-08-13 13:11:46
阅读次数:
315
题目链接:uva 11077 - Find the Permutations
题目大意:给定一个1~n的排序,可以通过一系列的交换变成1,2,…,n,
给定n和k,统计有多少个排列至少需要交换k次才能变成有序的序列。
解题思路:给定一个序列P,可以将该序列看做是一个置换,从有序序列,开始,需要多少次回到有序序列。将P的循环分解,循环长度为1的需要0次,长度为2的需要1次,循环长度为...
分类:
其他好文 时间:
2014-08-13 13:11:16
阅读次数:
275
FindWithTag查找标签,Find查找名称,2个函数均查找游戏对象GameObject.FindWithTagGameObject.Find下面例子移动摄像机,同时追踪球的移动#pragma strict
//code:myhaspl@myhaspl.com
//date:2014-08-13
import System;
var translate_object:Rigidbody;
va...
分类:
移动开发 时间:
2014-08-13 13:05:06
阅读次数:
362
find a way to escape
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1383 Accepted Submission(s): 504
Problem Description
一日,话说0...
分类:
其他好文 时间:
2014-08-13 13:03:56
阅读次数:
213
思路:直接用并查集,最后找到 0 所在的集合,把 集合中的 人数 输出即可#includeusing namespace std;const int maxn=30000 +100;int set[maxn];int sum[maxn];int set_find(int d){ if(set[d]>...
分类:
其他好文 时间:
2014-08-13 13:00:06
阅读次数:
169
想为虚拟机配置固定ip,需要设置网关,但是mac版的vmware workstation没有Virtual Network Editor,所以不能直接查看到。因此执行如下命令进行查找find / -name vmnet8终于查找到了他的位置/Library/Preferences/VMware Fu...
分类:
Web程序 时间:
2014-08-13 12:30:26
阅读次数:
2361
发生以上错误的Qt版本应该是Qt 5.0.0以上的版本吧。出现标题错误的大致原因是:因为Qt是跨平台的库,需要依赖于相关的平台库。有个Platform的文件夹,里面有相关dll文件。references:http://www.cnblogs.com/naive/p/3568887.htmlhttp:...
分类:
移动开发 时间:
2014-08-13 12:21:36
阅读次数:
302