- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 [POJ]1844 Sum
[POJ]1844 Sum问题 Description Consider the natural numbers from 1 to N. By associating to each number a sign (+ or -) and calculating the value of this expression we obtain a sum S. The probl
2015-12-23 11:37:36
532
原创 [POJ]2533 Longest Ordered Subsequence
[POJ]2533 Longest Ordered Subsequence问题 Description A numeric sequence of ai is ordered if a1 < a2 < … < aN. Let the subsequence of the given numeric sequence (a1, a2, …, aN) be any sequenc
2015-12-02 11:06:48
464
原创 [POJ]1328 Radar Installation
[POJ]1328 Radar Installation问题 Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the
2015-12-02 09:50:08
478
原创 [POJ]1017 Packets
[POJ]1017 Packets问题 Description A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always delivered
2015-11-30 19:58:59
753
1
原创 [POJ]1664 放苹果
[POJ]1664 放苹果问题 Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。 O
2015-11-30 19:35:33
471
原创 [POJ]1458 Common Subsequence
[POJ]1458 Common Subsequ Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, …, xm > another sequence
2015-11-30 08:57:13
399
原创 [POJ]1258 Agri-Net
[POJ]1258 Agri-Net问题 Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help
2015-11-28 21:41:50
433
原创 [POJ]2299 Ultra-QuickSort
[POJ]2299 Ultra-QuickSort问题 Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjace
2015-11-27 21:43:07
522
原创 [POJ]3264 Balanced Lineup
[POJ]3264 Balanced Lineup问题 Description For the daily milking, Farmer John’s N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ulti
2015-11-27 20:09:43
372
原创 [POJ]1207 The 3n + 1 problem
[POJ]1207 The 3n + 1 problem问题 Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem y
2015-11-26 15:12:09
526
原创 排序算法
排序算法概述插入排序1 直接插入排序Straight Insertion Sort2 希尔排序Shells Sort选择排序1 简单选择排序Simple Selection Sort2 堆排序Heap Sort交换排序1 冒泡排序Bubble Sort2 快速排序Quick Sort排序算法概述排序分为:内部排序和外部排序。 - 内部排序:数据记录在内存中进行排序 - 外部排
2015-09-29 21:37:30
7669
原创 利用ns2仿真MANET中的虫洞攻击
一、虫洞攻击原理 虫洞(Wormhole)攻击又可称为隧道攻击,它是利用两个相距很远的攻击节点间共谋建立一条高质量高带宽的私有隧道,攻击者在私有隧道一端上记录数据包或位信息,通过此私有隧道将窃取的信息传递到隧道的另一端。因为私有隧道的距离一般远大于单跳无线传输半径,所以通过私用通道传递的数据包比通过正常多跳路径传递的数据包早到达目标节点。由于该隧道的高效特点,周围节点都选择该私有
2015-07-04 17:07:21
2306
原创 ubuntu14.04上安装ns-allinone-2.35
1. 首先去http://www.isi.edu/nsnam/ns/ns-build.html下载ns-allinone-2.35.tar.gz2. 安装几个依赖文件sudo apt-get install build-essentialsudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-devsudo apt-get install
2015-07-04 16:54:35
1983
原创 复杂链表的复制
时间限制:1秒空间限制:32768K通过比例:19.61%最佳记录:0 ms|8552K题目描述输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点)。思路:乍一看,还以为只是简单的链表复制,后来发现,还有一个任意指针,复制这个指针才是问题难度的核心。因此,将该题链表复制分解为普通指针复制与任意指针复制两部分,这两部
2015-07-01 10:05:51
692
原创 ubutnu12.10安装xen4.2.1以及remus和DRBD
1. 系统首先配置LVM2. 配置网络apt-get install bridge-utilsvi /etc/network/interfaces#auto xenbr0iface xenbr0 inet static address //本机IP netmask //子网掩码 gateway //网关地址 dns-nameservers //dns地址 bridg
2015-06-26 19:27:04
1107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人