码迷,mamicode.com
首页 >  
搜索关键字:rmq range minimummax    ( 10438个结果
accumulate
accumulate?就是sum up a range of elements。呵呵。这个挺简单的。以下是这个算法的简单介绍:Syntax: #include //呵呵,使用这个算法这个头文件是必需要包含进来滴!TYPE accumulate( input_iterator start, input...
分类:其他好文   时间:2014-10-13 13:50:29    阅读次数:171
linux-shell脚本命令之sed
[ sed简单介绍:]sed是一个非常好的文件处理工具, 它本身是一个管道命令, 以行为单位进行处理, 能够用于对数据行进行新增、选取、替换、删除等操作。sed命令行格式:sed [-nefri] 'range command' file如: sed '2d' aaa.txt ...
分类:系统相关   时间:2014-10-12 16:20:30    阅读次数:263
【UVA】12299-RMQ with Shifts(线段树)
修改的时候由于数据很小,所以可以直接暴力修改,查询的时候利用线段树就行了。 14337858 12299 RMQ with Shifts Accepted C++ 0.282 2014-10-11 16:02:53 #include #include #include #include using namespace st...
分类:其他好文   时间:2014-10-12 01:48:27    阅读次数:286
unity 的日常用法记录
1.多个GameObject 的随机抽取public GameObject[] hazards;void Fun(){ // 从多个gamObj中抽取一个 GameObject o = hazards [Random.Range (0, hazards.Length)]; Vector3 p =.....
分类:编程语言   时间:2014-10-12 00:09:06    阅读次数:387
Azure PowerShell (6) 设置Virtual Machine Endpoint
《Windows Azure Platform 系列文章目录》 请注意: - Azure不支持增加Endpoint Range - 最多可以增加Endpoint数量为150 http://azure.microsoft.com/zh-cn/documentation/articles...
分类:系统相关   时间:2014-10-11 17:31:45    阅读次数:253
【Excel&VBA】VBA中常用代码
1:Excel表中数据的行列数Sheets(1).UsedRange.Rows.CountSheets(1).UsedRange.Columns.Count或者,Sheets(1).Range("A65536").End(xlUp).RowSheets(1).Range("A65536").End(...
分类:编程语言   时间:2014-10-11 15:25:25    阅读次数:151
【Excel&VBA】Application
一:ActiveCell返回一个Range对象,代表活动窗口(最上方的窗口)或指定窗口中的活动单元格。如果窗口中没有显示工作簿,此属性无效。只读。如果不指定对象识别符,此属性返回活动窗口中的活动单元格;活动单元格是选定区域内部的一个单元格,选定区域可以包含多个单元格,但只有一个单元格为活动单元格;以...
分类:移动开发   时间:2014-10-11 14:39:45    阅读次数:163
leetcode 二分查找 Search for a Range
Search for a Range  Total Accepted: 21480 Total Submissions: 78454My Submissions Given a sorted array of integers, find the starting and ending position of a given target value. Your algo...
分类:其他好文   时间:2014-10-11 00:15:07    阅读次数:197
【LeetCode】Integer to Roman 和 Roman to Integer
【题目】 Given a roman numeral, convert it to an integer. Or, Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 【罗马数字】 1~9: {"I", "II", "III...
分类:其他好文   时间:2014-10-10 22:23:44    阅读次数:182
Hunt the wumpus 《Python代码》
1 from random import choice 2 3 cave_numbers = range(1,21) 4 wumpus_location = choice(cave_numbers) 5 player_location = choice(cave_numbers) 6 while.....
分类:编程语言   时间:2014-10-10 15:18:43    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!