如果写成[ "$a" -lt "$b" ],当$a $b 是整数(integer)时,工作得很好,但对于浮点数,会得不到想要的结果,它只会给你“-bash:***期待整数表达式”的结果。为了比较两个浮点数,可以写成这样[ `echo "$a > $b" | bc` -ne 0 ]
分类:
系统相关 时间:
2014-11-02 15:03:31
阅读次数:
275
成语接龙
Time Limit: 1000 MS Memory Limit: 32768 KB
64-bit integer IO format: %lld , %llu Java class name: Main
[Submit] [Status]
[Discuss]
题目链接:http://acm.hrbust.edu.cn/vj/index.php?c=problem-p...
分类:
其他好文 时间:
2014-11-02 12:31:50
阅读次数:
276
服务器端:1、创建DATASANP 服务器。2、添加,Sqlconnettion,clientdataSet,DataSetProvider.设置好参数。3、在ServerMethodsUnit1 中创建function recordCount(Sql:string):integer;functio...
分类:
其他好文 时间:
2014-11-02 12:14:05
阅读次数:
126
彩桥
Time Limit: 1000 MS Memory Limit: 32768 KB
64-bit integer IO format: %lld , %llu Java class name: Main
[Submit] [Status]
[Discuss]
题目链接:
Description
Cc用了药水之后状态全满,现在出现在他们眼前的是一个悬崖...
分类:
其他好文 时间:
2014-11-02 10:48:29
阅读次数:
238
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-11-02 07:03:37
阅读次数:
177
Delphi Ping检测联网状态uses IdBaseComponent, IdComponent, IdRawBase, IdRawClient, IdIcmpClient;function PingServer(HostIP: string;LinkTimeOut: integer): boo...
Callable方法比Runnable强大一些在于它被线程执行后有返回值,该返回值可以被Future拿到。用法:Callable<Integer>callable=newCallable<Integer>(){publicIntegercall()throwsException{//dosth}};FutureTask<Integer>future=newFutureTask<Integer>(..
分类:
其他好文 时间:
2014-11-01 19:17:29
阅读次数:
175
Map m = new HashMap(); Integer i = 5; String s = null; m.put("val1", i); m.put("val2", s); System.err.println(m.get("val1")); System.err.prin...
分类:
其他好文 时间:
2014-11-01 16:15:31
阅读次数:
145
Query on a treeTime Limit:5000msMemory Limit:262144KBThis problem will be judged on SPOJ. Original ID:QTREE64-bit integer IO format:%lld Java class na...
分类:
其他好文 时间:
2014-11-01 14:47:17
阅读次数:
182
DescriptionVasya plays Robot Bicorn Attack.The game consists of three rounds. For each one a non-negative integer amount of points is given. The resul...
分类:
其他好文 时间:
2014-11-01 13:24:08
阅读次数:
157