萌萌哒的传送门
因为一个long long 范围内的数开方不会超过10次,所以题目就转化为线段树的单点更新问题.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ls u << 1
#define rs u << 1 | 1
#d...
分类:
其他好文 时间:
2015-02-14 12:23:50
阅读次数:
134
UVA 10487 Closest Sums
Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find a sum of two distinct numbers from the set, which is closest to...
分类:
其他好文 时间:
2015-02-12 09:22:05
阅读次数:
229
随着pc、移动设备的屏幕规格增多、增大,当前,依据使用Media Query在不同的条件下使用不同的样式,使页面达到不同的渲染效果,可以有效的解决各种屏幕分辨率下的用户体验及移动web开发多种需求。Media Queries(媒体查询):作用就是允许添加表达式用以确定媒体的环境情况,以此来应用不同的...
分类:
Web程序 时间:
2015-02-11 18:09:23
阅读次数:
380
呼叫中心工单系统Ticket system又称为工单管理系统(还可以称为问题工单系统,事务工单系统,事务追踪系统issue tracking system,支持工单系统support ticket system)),它是一种网络软件系统,根据不同组织,部...
分类:
其他好文 时间:
2015-02-11 12:55:03
阅读次数:
235
原文http://www.peterviola.com/solving-sql-server-high-cpu-with-iis-request-filtering/Top Queries by Total CPU Time当CPU非常高的时候有可能你的条件反射就是重启服务或者回收App Pools...
分类:
数据库 时间:
2015-02-09 15:46:16
阅读次数:
203
Closest Sums
Input: standard input
Output: standard output
Time Limit: 3 seconds
Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find a sum of ...
分类:
其他好文 时间:
2015-02-06 15:03:39
阅读次数:
130
这是一个比较全面的题,涉及到了添加删除寻找第k大还有树的合并。做法大概先执行所有的删边操作,建立最终的图,这里可以用并查集维护一下, 方便判断是不是在一个联通块中,然后对每个子块建立一个Treap,如果遇到添加边导致两个联通块合并成一个的情况,就将两棵树当中小的那个合并到大的那个里面。因为每次这样的...
分类:
其他好文 时间:
2015-02-06 12:58:14
阅读次数:
190
如今试图解决android平板的屏幕分辨率问题,眼下主要想到的办法是採用响应式设计和媒体查询,发现不管使用那种方式,工作量都非常大,调试都困难,悲催啊。 CSS的媒体查询尽管在传统的互联网页面可能发挥的余地不是非常大,可是自从苹果和安卓的风靡之后,移动平台上的web开发变得越来越流行了,同一...
分类:
移动开发 时间:
2015-02-06 11:06:26
阅读次数:
144
1,找到mysql的配置文件,一般在/etc/my.cnf,find也可以尝试搜索下该文件 find / -name my.cnf2,打开my.cnf文件,在【mysqld】的下面添加 log-slow-queries = /usr/local/mysql/log/slow.log long_q.....
分类:
数据库 时间:
2015-02-04 10:54:18
阅读次数:
163
/* Connection tracking via netlink socket. Allows for user space * protocol helpers and general trouble making from userspace. * * (C) 2001 by Jay Sch...
分类:
Web程序 时间:
2015-02-04 07:05:23
阅读次数:
382