超级恶心的一道题目。。。
查错查了一个小时。。。。
1,要用C++,用G++会wa。
2,注意检查边界。
3,注意标记的下放方式。
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000,1024000000")
u...
分类:
其他好文 时间:
2014-06-19 12:07:20
阅读次数:
217
感觉今天的状态有点不好。。。老是在小地方犯错。。。
简单的记录一下就好。
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
#define maxn...
分类:
其他好文 时间:
2014-06-19 09:53:25
阅读次数:
211
线段树记录当前区间是哪一个长方形在覆盖。
然后根据每一条线更新线段树。
如果是左边的边,那么把区间更新成当前长方形。
否则,把区间更新成当前长方形的前驱。
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000,102...
分类:
其他好文 时间:
2014-06-16 11:26:00
阅读次数:
161
报错的代码为protected void buttonPressed(int buttonId) {Display.getDefault().syncExec(new Runnable() { public void run() { localpmtsStreamViewsAction.r...
关于Maltab2014a command window 出现乱码问题的解决。...
Hadoop Pipes Exception: Illegal text protocol command对于Hadoop pipes 出现这样的错误,基本上编译代码依赖的.so和.a 版本不匹配网上也没有给出更多信息,我的同事最近回复了解决办法,可以参考https://groups.google....
分类:
其他好文 时间:
2014-06-15 14:37:31
阅读次数:
243
这次,聊聊关于「命令行提示符」的相关内容。bash之类的Shell程序是操作Linux所不可缺少的东西。其中bash的提示符也有承担了很重要的作用。「命令行提示符」的英文是「command prompt」,其中「prompt」有促使,推动的意思,根据这个意思,Shell中的「命令行提示符」就有促使,...
分类:
系统相关 时间:
2014-06-15 07:29:23
阅读次数:
327
http://docs.mongodb.org/manual/reference/command/renameCollection/db.source-namespace.renameCollection( "target" )比如把users 替换成 all_usersdb.users.renam...
分类:
其他好文 时间:
2014-06-14 23:49:28
阅读次数:
570
在linux上使用vi命令修改一个文件内容的时候,发现无法保存,每次写完使用“:q!”命令可以正常退出但是使用":wq!"命令保存文件并退出时出现一下信息提示:
E212: Can't open file for writing Press ENTER or type command to continue
出现这个错误的原因可能有两个:
1.当前用户...
分类:
系统相关 时间:
2014-06-14 12:53:30
阅读次数:
512
指定用户名密码启动管理服务器You can start and stop Oracle WebLogic Server Administration Servers using the WLST command line or a script. When you start or stop the...
分类:
数据库 时间:
2014-06-14 08:24:43
阅读次数:
368