原题http://poj.org/problem?id=2833
The Average
Time Limit: 6000MS
Memory Limit: 10000K
Total Submissions: 9423
Accepted: 2938
Case Time Limit: 4000MS
Description
...
分类:
其他好文 时间:
2014-09-04 10:31:41
阅读次数:
183
适用sqlServer,oracleCASEWHEN 条件1 THEN 结果1WHEN 条件2 THEN 结果2WHEN 条件3 THEN 结果3WHEN 条件4 THEN 结果4.........WHEN 条件N THEN 结果NELSE 结果XENDCase具有两种格式。简单Case函数和Cas...
分类:
数据库 时间:
2014-09-04 09:37:27
阅读次数:
303
首先,这是python脚本import os;for i in range(0,20): print ("Case:"+str(i)); print ("randoming"); os.system("randomdata.exe"); print("running righ...
分类:
编程语言 时间:
2014-09-03 22:35:57
阅读次数:
475
http://www.yrom.net/blog/2013/03/10/fragment-switch-not-restart/在项目中需要进行Fragment的切换,一直都是用replace()方法来替换Fragment:123456789 public void switchContent...
分类:
其他好文 时间:
2014-09-03 16:29:56
阅读次数:
125
1、问题
There are two int variables: a and b, don't use "if"、"? :"、"switch" or other judgement statement, find out the biggest one of the two numbers.
(有两个变量a和b,不用“if”、“? :”、“switch”或其他判断语句,找出两个数中比较大...
分类:
其他好文 时间:
2014-09-03 11:20:16
阅读次数:
178
线上遇到的一个case,应用结构是nginx----->resin---java,其中nginx做lb,resin做为java的容器。在nginx层面做httpcode的监控,发现有4xx比例高的的报警:分析nginx日志,发现是由于499比例高导致xxxxxxxx-[29/Oct/2012:04:10:03+0800]"GET/GetConfiguration.jsp?peer_vers..
分类:
数据库 时间:
2014-09-03 02:42:56
阅读次数:
281
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-09-02 21:11:15
阅读次数:
171
scala支持关联映射,如可以用(key -> value)表示一个键值对 scala中的所有类型都是对象,包括基本数据类型 scala中的case语句用来判断接收的消息,比java中的switch...case...更专注 receive{????case msg =>...
分类:
编程语言 时间:
2014-09-02 20:04:25
阅读次数:
324
Python 中的 unit test 流程
看了看Python中的单元测试流程, 写了个测试代码来看整体的测试流程
总结如下
一个 test case 类应该派生自 unittest.TestCase正常的的test case的调用顺序为
子类TestCase可以注册自己的清理函数(my_cleanup). 这个清理函数会在teardown之后被调用
...
分类:
编程语言 时间:
2014-09-02 20:00:25
阅读次数:
237
注:需要导入v4包
private MenuItem refreshItem;
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_refresh:...
分类:
其他好文 时间:
2014-09-02 17:50:55
阅读次数:
190