#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
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、while循环declare @sum intdeclare @i intset
@i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset
@num=100flag:print @numsel.....
分类:
数据库 时间:
2014-05-21 22:20:40
阅读次数:
468
堆栈和队列是最基本的两个ADT,简单但是重要。先讲堆栈在计算机中的应用。堆栈:1.用于符号匹配。在编译器的语法检查中,一个过程就是检查各种括号是否匹配,比如
([]) ,这就是匹配的,而 {[}] 就不匹配了。可以用堆栈来实现括号匹配。具体算法如下:建立一个空的堆栈。 while( 文件没有结...
分类:
其他好文 时间:
2014-05-21 19:52:47
阅读次数:
348
递推算法之一:倒推法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
There are two types of non-blocking thread synchronization algorithms
- lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:
其他好文 时间:
2014-05-21 10:27:20
阅读次数:
410
Tour
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3470
Accepted: 1545
Description
John Doe, a skilled pilot, enjoys traveling. While on vacation, he rents a...
分类:
其他好文 时间:
2014-05-21 08:24:18
阅读次数:
354
SOl:将原题改为枚举N的每一对因子,计算其是否互素即可。
#include
#include
#include
using namespace std;
inline int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,T,i,j;
scanf("%d",&T);
while(T...
分类:
其他好文 时间:
2014-05-21 07:07:00
阅读次数:
273