题目大意有n个从1..n标号的座位,按时间顺序给出每个客人来的时候是坐在第几个空座位,最后给若干个询问问第i号客人坐在哪里分析线段树+二分 1 // Fast Sequence Operations II 2 // Rujia Liu 3 // 输入格式: 4 // n m 数组范围...
分类:
其他好文 时间:
2015-03-28 23:02:20
阅读次数:
258
微软近期Open的职位:Are you interested in helping to drive the direction of a product that defines the cloud industry? Do you enjoy working on fast paced, ble...
分类:
Web程序 时间:
2015-03-28 15:44:30
阅读次数:
164
#lang racket(define (fast-multiplication a b n);a*n (cond ((= n 0) b);n==0 ((even? n) (fast-multiplication (double a) b ...
分类:
其他好文 时间:
2015-03-21 15:22:18
阅读次数:
159
在SICP 32(48)页根据书中给出的关系(bn/2)2=(b2)n/2,并且使用一个不变量记录中间结果,写出对数步数内迭代计算幂的函数:方法一(not me):;;; 16-fast-expt.scm(define (fast-expt b n) (expt-iter b n 1))(de...
分类:
其他好文 时间:
2015-03-21 13:58:15
阅读次数:
124
http://www.rsyslog.com/http://www.rsyslog.com/doc/v5-stable/troubleshooting/troubleshoot.htmlRSYSLOG is the rocket-fast system for log processing.It o...
分类:
其他好文 时间:
2015-03-20 18:04:16
阅读次数:
171
Fast Compressive Tracking
(快速压缩跟踪)
虽然目前有很多种的跟踪算法,但是由于姿态的变化、光照的变化、障碍物等原因的存在,导致很多算法的鲁棒性不好。
目前比较主流的跟踪算法有两种,generative tracking algorithms(生成跟踪算法)和discriminative algorithms(判别跟踪算法)。
生成跟踪算法,顾名思义边生成边跟踪...
分类:
编程语言 时间:
2015-03-20 14:32:24
阅读次数:
6040
DescriptionLittle Y finds there is a very interesting formula in mathematics:XY mod Z = KGiven X, Y, Z, we all know how to figure out K fast. However,...
分类:
其他好文 时间:
2015-03-20 10:40:10
阅读次数:
146
思路:生成全排列,用next_permutation,注意生成之前先对那个字符数组排序。
AC代码:
#include
#include
#include
#include
#include
using namespace std;
char str[20];
int main() {
int n;
cin >> n;
while(n--) {
scanf("%...
分类:
其他好文 时间:
2015-03-19 23:58:30
阅读次数:
234
introduction ????git is a fast,scalable and distributed version control system with an unusually rich command set that provides high-level operations and full access to internals....
分类:
其他好文 时间:
2015-03-18 21:53:43
阅读次数:
165
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:
Can you solve it without using extra space?解题思路设链表长度为n,头结点与循环节点之间的长度为k。定义两个指针slow和fast,slow每次走...
分类:
其他好文 时间:
2015-03-18 14:07:38
阅读次数:
116