码迷,mamicode.com
首页 >  
搜索关键字:strange sorting    ( 1127个结果
projecteuler---->problem=22----Names scores
sing names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical v...
分类:其他好文   时间:2014-06-20 10:37:22    阅读次数:230
直接插入
直接插入排序(Straight Insertion Sorting)的基本思想是:把n个待排序的元素看成为一个有序表和一个无序表,开始时有序表中只包含一个元素,无序表中包含有n-1个元素,排序过程 中每次从无序表中取出第一个元素,将它插入到有序表中的适当位置,使之成为新的有序表,重复n-1次可完成排...
分类:其他好文   时间:2014-06-11 09:49:14    阅读次数:263
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
UVA 712 - S-Trees
题目如下: S-Trees  A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function .Each path of the S-tree begins at the root node and consists ...
分类:其他好文   时间:2014-06-05 11:04:37    阅读次数:248
HDU - 4813 Hard Code (长春赛区水题)
Description Some strange code is sent to Da Shan High School. It's said to be the prophet's note. The note is extremely hard to understand. However, Professor Meng is so smart that he successfully ...
分类:其他好文   时间:2014-06-01 09:18:38    阅读次数:246
poj 2891 Strange Way to Express Integers
http://poj.org/problem?id=2891这道题的题意是:给你多个模性方程组:m mod ai=ri 求最小的m;中国剩余定理 1 #include 2 #include 3 #include 4 #define ll long long 5 using namespace ...
分类:其他好文   时间:2014-05-31 19:06:39    阅读次数:191
poj 1094 Sorting It All Out
DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smalle...
分类:其他好文   时间:2014-05-30 14:31:10    阅读次数:297
MapReduce的模式、算法和用例
在这篇文章里总结了几种网上或者论文中常见的MapReduce模式和算法,并系统化的解释了这些技术的不同之处。所有描述性的文字和代码都使用了标准hadoop的MapReduce模型,包括Mappers, Reduces, Combiners, Partitioners,和 sorting。如下图所示。...
分类:其他好文   时间:2014-05-28 16:54:17    阅读次数:342
uva 11529 - Strange Tax Calculation(计数问题)
题目链接:uva 11529 - Strange Tax Calculation 题目大意:给出若干个点,保证任意三点不共线,任意选三个点作为三角行,其他点若又在该三角形内,则算是该三角形内部的点,问所有情况的三角形平均每个三角形有多少个内部点。 解题思路:三角形的总数很容易求C(3n),现在就是要求各个三角形内部点的总数,同样我们可以反过来,求每个点在多少个三角形的内部。 然后我们...
分类:其他好文   时间:2014-05-25 16:34:51    阅读次数:155
Swimming
/*Swimming时间限制:1000ms | 内存限制:65535KB难度:1描述Peipei likes swimming. Strange that he always swims from a coner to the counter corner inthe way bellow(that...
分类:其他好文   时间:2014-05-22 14:14:27    阅读次数:291
1127条   上一页 1 ... 109 110 111 112 113 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!