问题:建两线程,线程1进行计算1*1+~+99*99,线程2打印出线程1名字,每隔段时间读取一次线程1的计算结果? 1 public class Other{ 2 public static volatile int sum; 3 public static void main(St...
分类:
编程语言 时间:
2015-04-20 14:29:44
阅读次数:
204
英文:?https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode#Changes_in_strict_mode 关于ECMAScript 的一些标准: http://www.ecma-international.org/publications/files/ECMA-ST...
分类:
编程语言 时间:
2015-04-20 11:31:41
阅读次数:
135
在C++程序中,经常用const 来限制对一个对象的操作,例如,将一个变量定义为const 的:const int n=3;则这个变量的值不能被修改,即不能对变量赋值。 const 这个关键字经常出现在函数的定义中,而且会出现在不同的位置,比如: int strcmp (const char *st...
分类:
其他好文 时间:
2015-04-20 11:07:50
阅读次数:
150
Glass Pyramid
Time Limit: 1000ms
Memory Limit: 65536KB
This problem will be judged on Ural. Original ID: 1968
64-bit integer IO format: %lld Java class name: (Any)
Prev Submit St...
分类:
其他好文 时间:
2015-04-19 22:51:49
阅读次数:
263
用过Unity开发的工程师们一定对Mecanim的方便快捷印象深刻,用过之后再也不想回到刀耕火种的时代了。目前在做egret项目,首先就动手做了一个仿制Mecanim的FSM编辑器。工具做得越早,受益越多。仓库地址:https://github.com/wonderyue/Animator,欢迎st...
分类:
其他好文 时间:
2015-04-19 22:35:01
阅读次数:
352
第一眼,我勒个去。。。然后看到n ≤ 300的时候就2333了首先把时间离散化,则对于一个时间的区间,可以知道中间最大的那个一定要被选出来,然后把区间分成左右两份于是区间DP就好了,注意用左开右开的区间比较方便2333如果暴力找区间内最大值是O(n3)的,当然st表就是O(n2logn)的了。。。不...
分类:
其他好文 时间:
2015-04-19 17:52:51
阅读次数:
152
RMQ (Range Minimum/Maximum Query):对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j里的最小(大)值,也就是说,RMQ问题是指求区间最值的问题。
分类:
编程语言 时间:
2015-04-19 17:50:40
阅读次数:
181
用优先队列模拟: 1 #include 2 #include 3 #include 4 #include 5 #include 6 const int MAXN = 10000+10; 7 using namespace std; 8 9 typedef struct{10 st...
分类:
其他好文 时间:
2015-04-19 17:41:52
阅读次数:
134
My desperate journey with a human smuggler By Barat Ali Batoor When I was a child there was a toy where you could put square, round, triangular and st...
分类:
其他好文 时间:
2015-04-19 12:56:45
阅读次数:
225
这节课我们主要学习了String and Regular ExpressionsIntroduction of Strings Computer was used for numeric munipulation:1. Most programs are concerned more with st...