码迷,mamicode.com
首页 >  
搜索关键字:zoj 3686 a simple tr    ( 14369个结果
poj 2060 Taxi Cab Scheme (二分匹配)
Taxi Cab SchemeTime Limit:1000MSMemory Limit:30000KTotal Submissions:5710Accepted:2393DescriptionRunning a taxi station is not all that simple. Apart ...
分类:其他好文   时间:2014-06-29 13:16:13    阅读次数:179
ZOJ 3793 First Digit
rt,直接猜1 First Digit Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge Benford's Law, also called the First-Digit Law, refers to the frequency distribution of digits i...
分类:其他好文   时间:2014-06-20 13:04:39    阅读次数:277
ZOJ Monthly, June 2014——Grouping
n个点,m条边 每条边两个整数a、b,表示a到b的有向边 求,至少需要几个集合,使得:每个集合中的元素互相不能到达 N(1≤ N≤ 100000), M(1≤ M≤ 300000)...
分类:其他好文   时间:2014-06-20 11:52:46    阅读次数:175
数据结构 - 简单选择排序(simple selection sort) 详解 及 代码(C++)
数据结构 - 简单选择排序(simple selection sort)本文地址: http://blog.csdn.net/caroline_wendy/article/details/28601965 选择排序(selection sort) : 每一趟在n-i+1个记录中选取关键字最小的记录作为有序序列中第i个记录.简单选择排序(simple selection sort) : 通过n-i次关键字之间的比较, 从n-i+1个记录中选出关键字最...
分类:编程语言   时间:2014-06-20 09:48:25    阅读次数:332
Construct Binary Tree from Inorder and Postorder Traversal
题目 Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. 方法 根据树的中序遍历和后序遍历,来恢复树,使用递归的思想。 Tr...
分类:其他好文   时间:2014-06-07 14:50:37    阅读次数:231
ZOJ 3789 Gears
并查集, 删除节点操作,可以用新建节点代替 维护每个点到跟节点的距离 Gears Time Limit: 2 Seconds      Memory Limit: 65536 KB Bob has N (1 ≤ N ≤ 2*105) gears (numbered from 1 to N). Each gear can rotate clockwise or co...
分类:其他好文   时间:2014-06-07 11:33:37    阅读次数:227
Algorithm | Sort
Bubble sortBubble sort, sometimes incorrectly referred to as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the...
分类:其他好文   时间:2014-06-07 11:30:59    阅读次数:390
二分图的最大匹配
zoj 1364
分类:其他好文   时间:2014-06-05 18:39:22    阅读次数:249
Geronimo 叛逆者: 使用集成软件包:Codehaus 的 Woodstox(转载)
XML 解析器通常是高性能、健壮应用程序的关键。传统的 XML 解析技术包括文档对象模型(Document Object Model,DOM)和 Simple API for XML (SAX)。现在有一种非常不错的名为 Streaming API for XML (StAX) 的创新型新解析技术,...
分类:其他好文   时间:2014-06-05 14:27:08    阅读次数:383
SharedPreferences in Android
As far as I know, SharedPreferences allow us to store some simple data in a named area in our phone. Introduction to the uses of SharedPreferences is ...
分类:移动开发   时间:2014-06-05 14:07:21    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!