一开始写的dfs进行记忆化结果不知道怎么进行路径的记录。。。改成循环就好了
dp[i] = max(dp[j]) + 1 , weight[j] speed[i]
一开始进行一次排序使得重量递增,这样只需要考虑速度就好了
#include
#include
using namespace std;
const int maxn = 10005;
struct Mouse{
int ...
分类:
其他好文 时间:
2015-05-17 12:20:00
阅读次数:
96
set nu ru mouse=a sw=4 ts=4 sts=4 nobk cindent autoindent incsearch hlsearch t_Co=256syntax oncolorscheme molokai " 考场就用 koehlermap : !./%map : !./%.....
分类:
系统相关 时间:
2015-05-15 19:40:33
阅读次数:
172
Problem Description
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees,fa...
分类:
其他好文 时间:
2015-05-11 09:00:54
阅读次数:
221
#include
#include
#include
#pragma comment(lib, "cv.lib")
#pragma comment(lib, "cxcore.lib")
#pragma comment(lib, "highgui.lib")
#define true 1
#define false 0
void my_mouse_...
分类:
其他好文 时间:
2015-05-09 08:55:33
阅读次数:
150
let g:molokai_original = 1 let g:rehash256 = 1colorscheme molokaiset numberset nohlsearch incsearch"set mouse=aset autoindent smartindentset incsearch...
分类:
系统相关 时间:
2015-05-02 18:04:03
阅读次数:
220
鼠标左键键:LMB(Left Mouse Button) 鼠标滚轮:MMB(Middle Mouse Button) 鼠标右键:RMB(Right Mouse Button) 组合键操作: 例如'G+Z',先按G,再按Z 通用操作: 删除:Delete/x 删除Delete视图操作前视图(Front...
分类:
其他好文 时间:
2015-05-02 13:38:38
阅读次数:
532
opencv的鼠标事件主要涉及两个函数回调函数cvSetMouseCallbackvoid cvSetMouseCallback( const char* window_name, CvMouseCallback on_mouse, void* param CV_DEFAULT(NULL));window_name:鼠标执行的窗口名on_mouse:每次指定窗口鼠标事件发生时被调用的函数指针para...
分类:
其他好文 时间:
2015-05-01 10:42:14
阅读次数:
132
事件:
JavaScript 创建动态页面。事件是可以被 JavaScript 侦测到的行为。 网页中的每个元素都可以产生某些可以触发 JavaScript 函数或程序的事件。
比如说,当用户单击按钮或者提交表单数据时,就发生一个鼠标单击(onclick)事件,需要浏览器做出处理,返回给用户一个结果。
主要事件表:
鼠标单击事件( onclick ):
...
分类:
编程语言 时间:
2015-04-28 18:38:14
阅读次数:
215
(以下内容部分内容参考了http://adomas.org/javascript-mouse-wheel/ )之前js 仿Photoshop鼠标滚轮控制输入框取值中已使用js对鼠标滚轮事件进行控制,滚轮事件其中考虑浏览器兼容性问题附加事件 其中经我测试,IE/Opera属于同一类型,使用attac....
分类:
Web程序 时间:
2015-04-27 23:16:17
阅读次数:
177
1、鼠标移到表格行上变色 1 2 1 .mouse_color{background:#ebebeb;}2、点击目录滑动式地展开/收缩子目录1 2 3 $(document).ready(function(){4 $("#menu").click(function(){5 ...
分类:
其他好文 时间:
2015-04-25 16:22:00
阅读次数:
133