EXTENDED LIGHTS OUT
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6628
Accepted: 4368
Description
In an extended version of the game Lights Out, is a p...
分类:
其他好文 时间:
2014-08-24 16:43:32
阅读次数:
198
可见性:
我们希望确保一个线程修改了对象的状态后,其他线程能够看到发生的状态变化。
例:在没有同步的情况下共享变量
public class NoVisibility {
private static boolean ready;
private static int number;
public static class Rea...
分类:
编程语言 时间:
2014-08-24 15:31:02
阅读次数:
190
前几个月刚接触Android的时候做了一个小项目,其中也用到了类似刮刮乐的效果,现在把代码贴出来
首先要做一个类似橡皮擦的东西吧,然后才能把纸上的笔迹擦除
/**
* FileName: SplashActivity.java
*
* @desc 橡皮擦功能,类似刮刮乐效果
* @author HTP
* @Date 20140311
* @version 1.00
*/
p...
分类:
移动开发 时间:
2014-08-24 12:57:22
阅读次数:
352
使用mybatis的generator自动生成代码,但是oracle数据库中number(6,2)总是自动转成BigDecimal,我想要转成的是float类型
这样就写了一个类型转换器,需要继承JavaTypeResolver接口
然后在mybaties配置文件generatorConfig.xml中类型转换配置位置添加上即可
类型转换器MyJavaTypeRe...
分类:
其他好文 时间:
2014-08-24 11:43:12
阅读次数:
215
一. libva.a的编译过程
(1)apt-get install libdrm-dev解决libdrm找不到的问题
(2)wayland-scanner问题
checking pkg-config is at least version 0.9.0... yes
checking for WAYLAND_SCANNER... no
configure: error: Pack...
分类:
Windows程序 时间:
2014-08-24 11:39:12
阅读次数:
1310
Network of Schools
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 11180
Accepted: 4448
Description
A number of schools are connected to a computer netwo...
分类:
Web程序 时间:
2014-08-24 09:10:22
阅读次数:
309
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-23 18:53:01
阅读次数:
180
ExtJS学习-----------Ext.Object,ExtJS对javascript中的Number的扩展...
分类:
编程语言 时间:
2014-08-23 17:48:31
阅读次数:
287
命令处理区加入
int Look_File(pCommand b)
{
int _out_style = 1;
int _line_number = 1;
int _len_argu = strlen(b->Cmd_Arguments);
while (--_len_argu >= 0)
{
switch (b->Cmd_Arguments[_len_argu])
{
ca...
分类:
其他好文 时间:
2014-08-23 17:45:41
阅读次数:
192
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2014-08-23 16:51:01
阅读次数:
184