One Person GameTime Limit:2 Seconds Memory
Limit:65536 KBThere is an interesting and simple one person game. Suppose there
is a number axis under your...
分类:
其他好文 时间:
2014-05-24 07:02:17
阅读次数:
310
HTML5出来很久了一直没好好研究过,今天找视频看了,研究了一下,制作了一个闹钟。效果图如下 your
broswer can not see the clock 需要注意的几个常见的方法1. closePath,beginPath(...
分类:
Web程序 时间:
2014-05-24 06:02:43
阅读次数:
421
1.session.save_handler = files *1.session_start()
1.session_start()是session机制的开始,它有一定概率开启垃圾回收,因为session是存放在文件中,PHP自身的垃圾回收是无效的,SESSION的回收是要删文件的,这个概率是根据...
分类:
Web程序 时间:
2014-05-23 12:35:49
阅读次数:
444
1.安装npm2.安装CLI ( npm install -g grunt-cli)3.安装grunt
(npm install grunt --save-dev)4.添加gruntfile.jsmodule.exports = function (grunt)
{ grunt.initConfi....
分类:
其他好文 时间:
2014-05-23 11:22:46
阅读次数:
281
//============================================================================
// Name : DoubleBuffer.cpp
// Author : Vit
// Version :
// Copyright : Your copyright notice
// Descrip...
分类:
其他好文 时间:
2014-05-22 12:43:51
阅读次数:
349
获取光驱序列号、分位、型号代码
{CSDN:CODE:353256}
头文件如下(有些部分没有用到):
#include
#include
#include
#include
#include
// TODO: reference additional headers your program requires here
//static void dump_buffer(c...
分类:
其他好文 时间:
2014-05-22 09:56:04
阅读次数:
376
就拿杭电OJ上的第1003题开始吧,这题比原书要复杂一些。
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum...
分类:
其他好文 时间:
2014-05-22 07:07:27
阅读次数:
322
【题目】
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5...
分类:
其他好文 时间:
2014-05-22 06:44:39
阅读次数:
265
题目:
Given an array of integers, every element appears
three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implem...
分类:
其他好文 时间:
2014-05-20 16:22:52
阅读次数:
241
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem easie...
分类:
其他好文 时间:
2014-05-20 14:42:07
阅读次数:
324