Jzzhu has invented a kind of sequences, they meet the following property:
You are given x and y,
please calculate fn modulo 1000000007 (109?+?7).
Input
The first line contains two int...
分类:
其他好文 时间:
2014-07-22 22:49:33
阅读次数:
296
题目大意:
求一个窗口覆盖最多的星星的权值。
思路分析:
每一个星星看成
左下点为x y
右上点为x+w-1 y+h-1 的矩形。
然后求出最大覆盖的和。
#include
#include
#include
#include
#define lson num<<1,s,mid
#define rson num<<1|1,mid+1,e
#define max...
Ctrl + a ? ? ? ?光标移动到行首(Ahead of line),相当于通常的Home键 Ctrl + e ? ? ? ?光标移动到行尾(End of line) Ctrl + l ? ? ? ?清屏,相当于执行clear命令...
分类:
其他好文 时间:
2014-07-22 09:10:36
阅读次数:
186
在用webpy的db.insert()向postgres插入数据时出现 Traceback?(most?recent?call?last):
??File?"upgrade2.0.py",?line?170,?in?<module>
????copy_webservice()
??File?"upgrade2.0.py",?lin...
分类:
Web程序 时间:
2014-07-22 08:10:35
阅读次数:
569
步骤一:开始菜单--> 右击点属性 --> 点击自定义 --> 将控制面板选项下的单选框选择显示为菜单 ; 步骤二:开始菜单--> 控制面板 --> 文件夹选项 --> 在查看中将在单独的进程中打开文件夹窗口前的勾去掉,点击确认...
#!/bin/bash
要先下载好软件:quagga-0.99.19.tar.gz
cp?/etc/yum.conf?/etc/yum.conf.lnmp
sed?-i?‘s:exclude=.*:exclude=:g‘?/etc/yum.conf
for?packages?in?gcc?gcc-c++?ncurses-devel?libxml2...
分类:
其他好文 时间:
2014-07-21 10:31:21
阅读次数:
260
如果AlertDialog里有输入框,那么如何根据自己的需要关闭AlertDialog,网上有很多是通过反射方式。这里有另外一种方法。 Builder builder = new Builder(MainActivity.this); builder.setTitle("服务器设...
分类:
其他好文 时间:
2014-07-21 10:19:04
阅读次数:
168
对于PDF文件格式的转换问题,普通用户选择迅捷PDF转换器可以非常轻松地实现上述功能。用户仅仅需要将PDF文件拖放到程序界面,程序将自动地将PDF文件内容自动分析和预处理,并借助超线程转换核心的帮助,快速地将P...
分类:
其他好文 时间:
2014-07-21 10:07:19
阅读次数:
293
Jzzhu has invented a kind of sequences, they meet the following property:
You are given x and
y, please calculate fn modulo
1000000007 (109?+?7).
Input
The first line contains two integers...
分类:
其他好文 时间:
2014-07-20 10:43:17
阅读次数:
213
#!/bin/bash#初始化环境变量source.bash_profile#日志名中的固有日期格式f_name=`date+%Y%m%d`#日志的路径及名称log_file=/backup/db/rman/log/rman$f_name-0401.logecho$log_file#统计日志文件行数#line_num=`wc-l$log_file|awk‘{print$1}‘`#echo$line_num#如果日志文件不存在..
分类:
其他好文 时间:
2014-07-20 10:18:28
阅读次数:
304