function aaa(){ window.close(); } function ck() { console.profile(); console.profileEnd(); if(console.clear) { console.clear() }; if (typeof console.profiles =="object"){ return console.profiles.length > 0; } } function hehe(){ if( (window.console && (console.firebug || console.table && /firebug/i.test(console.table()) )) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)){ aaa(); } if(typeof console.profiles =="object"&&console.profiles.length > 0){ aaa(); } } hehe(); window.onresize = function(){ if((window.outerHeight-window.innerHeight)>200) aaa(); }
摘要: ST表 ST表是一种解决RMQ(区间最值问题)的强有力的工具 它可以做到O(nlogn)预处理,O(1)查询最值。 实现 ST表其实是一种倍增的思想,我们就拿取最大值为例: 开一个二维数组Max,其中Max[i][j]表示从第i位开始,包括第i位在内的2^j个数中最大的数,例如Max[i][1]表示 阅读全文
posted @ 2019-07-19 20:35 华恋~韵 阅读(628) 评论(0) 推荐(1) 编辑