#includeusing namespace std;int begin[9][9];bool
check(int x,int y,int k){ for(int i=0;i>t; while(t--) { for(int
i=0;i>begin[i][j]; ...
分类:
其他好文 时间:
2014-05-26 21:05:25
阅读次数:
189
今天在编译安装ffmpeg的时候出现了题目中的问题,最终解决方案如下:errors:ffmpeg正常安装后执行ffmpeg时出现如下错误:ffmpeg:
error while loading shared libraries: libavdevice.so.52: cannot open shar...
分类:
其他好文 时间:
2014-05-26 20:54:37
阅读次数:
313
//判断一个汉子等于两个字符function getByteLen(val) { var len =
0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if
(a.match(/[...
分类:
Web程序 时间:
2014-05-26 20:47:25
阅读次数:
205
1. 多线程的数据安全2. 同步线程的方法1. 多线程的数据安全 1 class MyThread
implements Runnable{ 2 int i = 100; 3 public void run(){ 4 while(true){ 5 ...
分类:
编程语言 时间:
2014-05-23 04:27:08
阅读次数:
236
1 #include 2 //quickSort 3 int partition(int
a[],int start,int end) { 4 int node = a[start]; //初始节点 5 while(start= node
&& end > start) ...
分类:
其他好文 时间:
2014-05-23 04:04:22
阅读次数:
304
The network is naturally bigdataing, while bigdata is
inherently networking.
--yeasy@blog
用英文表达似乎更加准确一些。
计算机科学发展了半个世纪,而网络的出现极大推动了计算机相关技术的爆发式进步。
计算机或网络领域所研究的典型问题,往往都是追求高性能、精确、准确,而大数据技术则往往提供一...
分类:
其他好文 时间:
2014-05-23 00:25:05
阅读次数:
285
注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
a...
分类:
其他好文 时间:
2014-05-23 00:04:35
阅读次数:
344
import re
data = open('a.txt')
fh = open('b.txt', 'w')
"""Search the string begining with '【'"""
p = re.compile(r'\s*[\u3010]')
for each_d in data:
if re.match('\s*3\d{4}', each_d):
...
分类:
编程语言 时间:
2014-05-22 17:26:17
阅读次数:
293
转:适有修改并调试OKvar Sys = (function (ua) { var s = {};
s.IE = ua.match(/msie ([\d.]+)/) ? true : false; s.Firefox =
ua.match(/firefox\/([\d.]+)/) ...
分类:
其他好文 时间:
2014-05-22 15:24:55
阅读次数:
227
递推算法之一:倒推法1、一般分析思路:if 求解初始条件F1then begin{ 倒推
}由题意(或递推关系)确定最终结果Fn;求出倒推关系式Fi-1 =G(Fi );i=n;{ 从最终结果Fn出发进行倒推 }while
当前结果Fi非初始值F1do 由Fi-1=G(Fi)倒推前项;输出倒推结果F...
分类:
编程语言 时间:
2014-05-21 17:37:50
阅读次数:
267