var names = document.getElementById("names");var
pwds = document.getElementById("pwds");function subtton(){ if(names.value == ""
&& names.value.len...
分类:
其他好文 时间:
2014-05-24 00:27:14
阅读次数:
242
题意:题意就是输入N以EOF结尾,形成1-N的数字序列,然后选取一个幸运数字,每隔幸运数字的长度就将数字从序列中删掉,选取幸运数字的规则是最开始是2,之后删掉数字之后每次选取序列中除1和选过的幸运数字外最小的。3#include#include#include
#includeusing names...
分类:
其他好文 时间:
2014-05-19 10:20:26
阅读次数:
303
-- 查找重复记录select names,num from test where rowid !=
(select max(rowid) from test b where b.names = test.names and b.num =
test.num)或者使用select names,n.....
分类:
数据库 时间:
2014-05-16 18:51:53
阅读次数:
278
转自Ibm:Name mangling is the encoding of function and
variable names into unique names so that linkers can separate common names in
the language. Type n...
分类:
编程语言 时间:
2014-05-13 18:18:53
阅读次数:
421
第一次写记录文章,难免有不足之处;欢迎指出。1、新建一个mvc项目如:2、新建一个Test.cs 注意get,set方法不能简写using
System;using System.Collections.Generic;using System.Linq;using
System.Web;names...
分类:
Web程序 时间:
2014-05-11 17:18:55
阅读次数:
517
import osdef tree(top): for path, names, fnames in
os.walk(top): for fname in fnames: yield os.path.join(path, fname) for name
in...
分类:
编程语言 时间:
2014-05-09 23:49:35
阅读次数:
367
newton板已经发布了,下面接着整理我调试的一个小小的方面,蓝牙的功能实现以及测试:
转载请注明出处:http://blog.csdn.net/wang_zheng_kai
3.2. Bluetooth Function Test
141
142 1)View the Bluetooth MAC address and device names:hcitool dev
143...
分类:
其他好文 时间:
2014-05-09 01:32:21
阅读次数:
265
大意:给一些箱子,每个箱子都有自己的强度,若为n,表示它上面最多能摞n个箱子。
问:最少能把这些箱子摞成几摞。
分析:从上往下摞,贪心。...
分类:
其他好文 时间:
2014-05-07 16:08:30
阅读次数:
286
大意:每个测试用例是一个数组。找出xi和xj,(xi>xj),做运算令xi=xi-xj。可以做若干组这样的运算,使得最后的数组和最小。输出此和。
分析:用优先队列,每次找出最大的和次大的,处理后再加入此队列。注意多个相同的xi这种情况!...
分类:
其他好文 时间:
2014-05-07 07:19:27
阅读次数:
301
http://acm.hdu.edu.cn/showproblem.php?pid=3038
这是一道并查集题目,这并查集感觉好难写,构思花了我很长很长时间,不过打码时间很短。考虑清楚之后明显快多了
#include
#include
#include
#include
#include
#include
#include
#define N 200010
using names...
分类:
其他好文 时间:
2014-05-07 04:03:06
阅读次数:
331