上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 154 下一页
摘要: 题目:ZOJ Problem Set - 3820 Building Fire Stations 题意:给出n个点,n-1条边的一棵树。然后要在两个点上建立两个消防站。让全部点的到消防站最大距离的点的这个距离最小。 分析:首先先求这个树的直径。然后在树的直径的中点处把树分成两棵树。然后在把两棵树分别 阅读全文
posted @ 2017-06-24 08:20 jhcelue 阅读(152) 评论(0) 推荐(0)
摘要: 错误的写法:(in_story_num-out_story_num) as story_num 正确的写法:(nvl(in_story_num,0)-nvl(out_story_num,0)) as story_num (注:利用nvl函数) 错误的写法:(in_story_num-out_stor 阅读全文
posted @ 2017-06-24 08:19 jhcelue 阅读(792) 评论(0) 推荐(0)
摘要: B. DZY Loves Strings time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output DZY loves collecting 阅读全文
posted @ 2017-06-23 21:05 jhcelue 阅读(180) 评论(0) 推荐(0)
摘要: (懒人近期想起我还有csdn好久没打理了。这个android init躺在我的草稿箱中快5年了。略微改改发出来吧) RC文件格式 rc文件是linux中常见的启动载入阶段运行的文件。rc是run commands的缩写。基本上能够理解为在启动阶段运行的一些列命令。android init进程启动时, 阅读全文
posted @ 2017-06-23 19:36 jhcelue 阅读(458) 评论(0) 推荐(0)
摘要: driver.sendKeyEvent(AndroidKeyCode.BACK); driver.sendKeyEvent(AndroidKeyCode.BACKSPACE); driver.sendKeyEvent(AndroidKeyCode.DEL); driver.sendKeyEvent( 阅读全文
posted @ 2017-06-23 17:53 jhcelue 阅读(323) 评论(0) 推荐(0)
摘要: 什么是多线程?这些话就不说了,直接看样例。 一、 使用多线程 1、 继承Thread类 package com.ztz.myThread; public class MyThread extends Thread{ @Override public void run() { System.out.p 阅读全文
posted @ 2017-06-23 17:08 jhcelue 阅读(163) 评论(0) 推荐(0)
摘要: 为了加深理解Spring 今天自己写了一个模拟的Spring.... 步骤: 1.利用jdom解析bean.xml(pull,sax也能够,我这里用了jdom) 2.先解析全部的<bean/>,再解析全部的<property/>.假设边解析<bean/>,边解析<property/>,会导致prop 阅读全文
posted @ 2017-06-23 15:28 jhcelue 阅读(165) 评论(0) 推荐(0)
摘要: 手机上的页面不像桌面开发这么方便调试。能够使用Weinre进行远程调试以方便开发。本文介绍windows下的安装与使用。 安装 使用npm安装。能够执行: ###npm config set registry “https://npmjs.org” npm install -g weinre 安装完 阅读全文
posted @ 2017-06-23 14:50 jhcelue 阅读(236) 评论(0) 推荐(0)
摘要: 3 数组相关操作 3.1 编写一段代码。将a设置为一个n个随机整数的数组,要求随机数介于0(包括)和n(不包括)之间 random和yield的使用 Scala代码 import scala.math.random def randomArray(n:Int)={ for(i <- 0 until  阅读全文
posted @ 2017-06-23 14:04 jhcelue 阅读(718) 评论(0) 推荐(0)
摘要: 1、错误描写叙述org.hibernate.AssertionFailure: null id in com.you.model.User entry (don't flush the Session after an exception occurs) at org.hibernate.event 阅读全文
posted @ 2017-06-23 13:08 jhcelue 阅读(446) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 154 下一页