P1006:真不会线段树,更不会带LAZY的线段树。思想就是延迟标记#include#include#include#include#includeusing namespace std;#define lson l,m,rt>1; build(lson); build(rson);}v...
分类:
其他好文 时间:
2014-08-01 19:36:32
阅读次数:
221
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self request];}- (voi...
分类:
其他好文 时间:
2014-08-01 10:27:41
阅读次数:
247
Nice boat
Time Limit: 30000/15000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 335 Accepted Submission(s): 159
Problem Description
There is an ol...
分类:
其他好文 时间:
2014-08-01 00:03:21
阅读次数:
260
据说暴力也过了,还傻逼地写了这么长。。。
#include
#include
#include
#include
using namespace std;
#define ll long long
#define L(x) (x<<1)
#define R(x) (x<<1|1)
#define Val(x) tree[x].val
#define Lazy(x) tree[x].laz...
分类:
其他好文 时间:
2014-07-31 20:54:47
阅读次数:
283
问题:直接用IE打开index.html弹出一个对话框:Error loading XML document: dwz.frag.xml方案一(已经验证):转自:http://blog.csdn.net/wy542107493/article/details/7641064原因:dwz.frag.x...
分类:
其他好文 时间:
2014-07-31 20:23:17
阅读次数:
215
大致文件布局如下,一个html文件,一个loading.js,在loading.js中加载其他需要的js和css。
至于具体的速度的话,建议cdn或者一个域中最多加载6个js文件。在loading.js中加载js和css之前,检测是不是微信游览器,是的话,go。不是则跳转到提示。
function isWeiXin(){
var ua = window.navigator.user...
分类:
微信 时间:
2014-07-31 16:59:37
阅读次数:
376
线段树,懒惰标记 1 #include 2 #include 3 using namespace std; 4 #define N 400010 5 int sum[N],lazy[N]; 6 void pushup(int root){ 7 sum[root]=sum[root*2]+...
分类:
其他好文 时间:
2014-07-31 16:07:46
阅读次数:
255
闪亮的进度条效果。我喜欢粒子演示作品,特别是那些能够应用于实际的,例如这个由 Jack Rugile 编写的进度条效果。看着这么炫的 Loading 效果,即使让我多等一会也无妨:)你呢?
分类:
Web程序 时间:
2014-07-31 09:45:56
阅读次数:
311
atitit.解决net.sf.json.JSONException There is a cycle in the hierarchy
1. 环境:使用hibernate4跟个,,要不个哪的对象系列化成个json的时候儿有这个问题了...
1
2. 原因::hb默认的lazy 方式造成的当有关联对象的时候儿...
1
3. #---解决::lazy =false (推荐).. 1...
分类:
Web程序 时间:
2014-07-30 20:46:34
阅读次数:
506
Problem Description
Recently, Doge got a funny birthday present from his new friend, Protein Tiger from St. Beeze College. No, not cactuses. It's a mysterious blackbox.
After some research, Doge...
分类:
其他好文 时间:
2014-07-30 17:27:44
阅读次数:
282