(function(){ var tit = $("#tab a"), con = $("#tcontent>div"), cur = 'cur'; tit.mousemove(function(){ var index = tit.index(th...
分类:
其他好文 时间:
2014-07-31 19:57:47
阅读次数:
184
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more th...
分类:
其他好文 时间:
2014-07-31 17:16:57
阅读次数:
221
这几天自己学习了一下线程的知识,wait 方法使当前的线程等待,notify 方法 唤醒当前的线程的方法th 线程在5的时候进行wait,此时主线程继续执行, 主线程执行到9的时候 唤醒 th 线程public class ThreadDemo1 { public static void main(...
分类:
编程语言 时间:
2014-07-31 16:51:56
阅读次数:
264
【Level Of Detail】 Here's one of the ways to set up an object with differentLODs. At this point the empty object should contain both versions of th...
分类:
其他好文 时间:
2014-07-31 16:03:16
阅读次数:
253
Description
Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of this game are very simple: At first, the nine rings are all on the bar....
分类:
其他好文 时间:
2014-07-30 20:50:24
阅读次数:
319
环境:OS X 10.9; MacTeX-2014; LyX Version 2.1.0Ⅰ. 中文字体使用XeTeX引擎: PDF(XeTeX)。LyX-Documents-Settings-Language:Language: Chinese(simplified)Encoding-Other: ...
分类:
其他好文 时间:
2014-07-30 17:15:54
阅读次数:
437
Thread.java源码中:
ThreadLocal.ThreadLocalMap threadLocals = null;即:每个Thread对象都有一个ThreadLocal.ThreadLocalMap成员变量,ThreadLocal.ThreadLocalMap是一个ThreadLocal类的静态内部类(如下所示),所以Thread类可以进行引用.
static class Th...
分类:
编程语言 时间:
2014-07-30 12:24:43
阅读次数:
200
http://acm.hdu.edu.cn/showproblem.php?pid=2795
多校的第一场和第三场都出现了线段树,比赛期间没做,,这两天先做几道热身下,然后31号之前把那两道多校的线段树都搞了,这是一道热身题
关键是建模:
首先一定看清楚题目构造的场景,看有什么特点--------会发现,如果尽量往左上放置的话,那么由于 the i-th announcement is a ...
分类:
其他好文 时间:
2014-07-30 01:02:12
阅读次数:
249
修改文件 /system/core/Router.php 的方法 _parse_route()
/**
* Parse Routes
*
* This function matches any routes that may exist in
* the config/routes.php file against the URI to
* determine if th...
分类:
其他好文 时间:
2014-07-29 18:05:12
阅读次数:
211
spin.js,ruby上使用例子<divid="spinBody">
<div>
<%form_tag"/login",:id=>"login_form"do-%>
<tablewidth="100%"cellpadding="3"style="margin-top:15px;">
<tr>
<thstyle="width:80px;"><%=t"a.loginid"%></th>
<td..
分类:
Web程序 时间:
2014-07-28 16:47:24
阅读次数:
294