码迷,mamicode.com
首页 > 其他好文
HDU2391 Filthy Rich 【DP】
Filthy Rich Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1793    Accepted Submission(s): 815 Problem Description They say tha...
分类:其他好文   时间:2014-08-06 10:39:01    阅读次数:209
HDU 1285 确定比赛名次(拓扑排序模板)
题意还是比较容易理解的,关键要看到后面的:合条件的排名可能不是唯一的,此时要求输出时编号小的队伍在前; 思路:这道题就是拓扑排序的经典应用了,用队列做的考虑优先编号小的出队就可以了。 拓扑排序: 拓扑排序是对有向无回路图(DAG)顶点的一种排序,它使得如果存在从u到v的有向路径,那么满足序列中u在v前。 所以我们的算法可以描述为这样一个过程: 1、找到整个图中所有的度为0的点,将这些点压...
分类:其他好文   时间:2014-08-06 10:38:51    阅读次数:199
归并排序求逆序对数
http://poj.org/problem?id=2299 给出n个数,每次只能交换两个相邻的数,问使得n个数有序最少需要交换多少次。 归并排序的模板,重在理解,小白书p144. #include #include #include #include #include #include #include #include #include #include...
分类:其他好文   时间:2014-08-06 10:38:41    阅读次数:234
Wow! Such String!
给一个n,输出一个长度为n的字符串,使得串中任意相连四个字符组成的串不重复N (1 ≤ N ≤ 500000)...
分类:其他好文   时间:2014-08-06 10:38:31    阅读次数:258
周赛 POJ 2250 Compromise
Description In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries...
分类:其他好文   时间:2014-08-06 10:38:11    阅读次数:270
hdu 4911 Inversion(归并排序求逆序对数)
Inversion                                                                             Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Problem Description ...
分类:其他好文   时间:2014-08-06 10:38:01    阅读次数:211
周赛 POJ 3934 Queue
Description Linda is a teacher in ACM kindergarten. She is in charge of n kids. Because the dinning hall is a little bit far away from the classroom, those n kids have to walk in line to the dinnin...
分类:其他好文   时间:2014-08-06 10:37:51    阅读次数:257
周赛 POJ 3546 The Dragon of Loowater
Description Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Creek in central Loowater had always been a prime breeding ground for g...
分类:其他好文   时间:2014-08-06 10:37:41    阅读次数:257
周赛 POJ 2245 Lotto
Description In the German Lotto you have to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subse...
分类:其他好文   时间:2014-08-06 10:37:11    阅读次数:358
crm使用soap创建下拉框
crm使用soap创建下拉框,crm创建下拉框...
分类:其他好文   时间:2014-08-06 10:37:01    阅读次数:355
priority_queue(优先队列)
C++ STL...
分类:其他好文   时间:2014-08-06 10:36:51    阅读次数:210
http://poj.org/problem?id=1330
Nearest Common Ancestors Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 17818   Accepted: 9455 Description A rooted tree is a well-known data structure in c...
分类:其他好文   时间:2014-08-06 10:36:41    阅读次数:252
【leetcode系列】String to Integer (atoi)
这个我就直接上代码了,最开始把“abc123“也算作合法的了,后来查了一下atoi的定义,把这种去掉了。 public class Solution { public static int atoi(String inStr) { long result = 0L; /* * 网上查了一下,atoi函数的定义是如果第一个非空格字符存在,是数字或者正负号则开始做类型转换, *...
分类:其他好文   时间:2014-08-06 10:36:31    阅读次数:193
HDU 4915 Parenthese sequence(瞎搞题)
从左向右扫一遍左括号的最大值,与最小值。 从右向左扫一遍右括号的最大值,与最小值。 比较最大值中的最小数与最小中的最大数看能否有交集,0个,1个或者多个。 Parenthese sequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total S...
分类:其他好文   时间:2014-08-06 10:36:21    阅读次数:219
神经网络的初识
序:          本系列是以NeuralNetwork and Deep Learning书为基础,加上自己的见解写得,第一次写系列,不好之处,请指出哦!接下来我们会先对神经网络有一个介绍,好让大家明白神经网络是一个什么东西。为了更好的进行学习,在后面会以识别数字为引导,让我们循序渐进学习吧!          先说些有的没的吧!有时候你会不会觉得人的视觉系统在这个世界上,是多么伟大的杰...
分类:其他好文   时间:2014-08-06 10:36:01    阅读次数:294
crm使用soap插入下拉框选项
crm使用soap插入下拉框选项...
分类:其他好文   时间:2014-08-06 10:35:41    阅读次数:243
英语七月结
这个七月再次将英语进行到底.12个小伙伴一起看了一部剧,经过三年多的积累,我们的听力恢复+单词积累+口语强化正在进行中.        其他九期同学也分组开始了以听力和模仿为主的topic学习.组织了一次如何学习的小活动,大家一起学了一课"Changed",从audio到MS到vocabulary.大家要记着听和模仿是最快最有效的方法. 当然必须要有认真和较真的精神. Effortless En...
分类:其他好文   时间:2014-08-06 10:35:01    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!