码迷,mamicode.com
首页 >  
搜索关键字:priority rules    ( 3247个结果
10-18 noip提高组模拟赛(codecomb)T2贪心
T2:找min:一直找最小的那个,直到a[i]-x+1小于0,就找次小的,以此类推;求max,也是一样的,一直到最大的那个,直到次大的比之前最大的大,就找次大的;这个模拟,可以用上priority_queue;#include #include #include #include #include ...
分类:其他好文   时间:2014-10-19 14:17:09    阅读次数:174
Guidlines and rules About Overwriting hashCode()
Preface "The code is more what you’d call guidelines than actual rules" – truer words were never spoken. It’s important when writing code to understa....
分类:其他好文   时间:2014-10-18 16:43:43    阅读次数:189
java多线程设置优先级
package com.itbuluoge.mythread; class SimpleThread extends Thread { private int priority; public SimpleThread(int i) { priority=i; } public void run() { Thread.currentThread().setPriority(p...
分类:编程语言   时间:2014-10-18 14:03:11    阅读次数:172
PMD-ATPCO-RuleSet_V7.xml 4
<!--NewrulesJan2010--><rulename="NPathComplexity"since="3.9"message="Themethod{0}()hasanNPathcomplexityof{1}"class="net.sourceforge.pmd.rules.design.NpathComplexity"externalInfoUrl="http://pmd.sourceforge.net/rules/codesize.html#NPathComplexity">..
分类:其他好文   时间:2014-10-17 12:11:16    阅读次数:346
PMD-ATPCO-RuleSet_V7.xml 1
<?xmlversion="1.0"encoding="UTF-8"?><rulesetname="PMD-ATPCO-RuleSet_V7"><description>PMDPluginpreferencesruleset</description><ruleclass="net.sourceforge.pmd.rules.strings.AvoidDuplicateLiteralsRule"message="TheStringliteral{0}app..
分类:其他好文   时间:2014-10-17 12:10:14    阅读次数:350
PMD-ATPCO-RuleSet_V7.xml 2
<ruleclass="net.sourceforge.pmd.rules.CloseResource"message="Ensurethatresourceslikethis{0}objectareclosedafteruse"name="CloseResource"><description>Ensurethatresources(likeConnection,Statement,andResultSetobjects)arealwaysclosedafteruse</des..
分类:其他好文   时间:2014-10-17 12:09:47    阅读次数:379
HDU 1509 Windows Message Queue
水题,用来熟悉优先队列。 有两个键,一个是优先级,一个是ID。按优先级排,优先级一样就按ID排。 #include #include #include #include #include #include #include #include #include #include #include #include #define INF 0x7fffffff #define e...
分类:Windows程序   时间:2014-10-16 14:37:52    阅读次数:314
HDU 1873 看病要排队
优先队列,水题。 三个医生,对应三个优先队列就可以了。 多组数据要初始化优先队列 #include #include #include #include #include #include #include #include #include #include #include #include #define INF 0x7fffffff #define eps 1e-8 #defi...
分类:其他好文   时间:2014-10-16 13:28:22    阅读次数:204
udev和rules使用规则
本文以通俗的方法阐述 udev 及相关术语的概念、udev 的配置文件和规则文件,然后以 Red Hat Enterprise Server 为平台演示一些管理设备文件和查询设备信息的实例。本文会使那些需要高效地、方便地管理 Linux 设备的用户受益匪浅,这些用户包括 Linux 最终用户、设备驱...
分类:其他好文   时间:2014-10-15 12:06:40    阅读次数:413
AFNetWorking Request failed: unacceptable content-type: text/html
今天写了一个快递查询的功能,使用的是AFNetWorking框架,贴个代码:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ NSDictionary *dict=@{@"key"...
分类:Web程序   时间:2014-10-15 01:08:54    阅读次数:1672
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!