A real story of windows DLL which does too much and without good version control
分类:
其他好文 时间:
2014-11-01 16:13:10
阅读次数:
238
题意: 给一些平面上的点,然后给一些查询(x,y),即以(x,y)为原点建立坐标系,一个人拿走第I,III象限的点,另一个人拿II,IV象限的,点不会在任何一个查询的坐标轴上,问每次两人的点数差为多少。解法:离线树状数组。点不在坐标轴上,即点不共线使这题简单了不少,可以离散化点,也可以不离散化,因为...
分类:
编程语言 时间:
2014-10-30 01:38:22
阅读次数:
343
POJ 3207 Ikki's Story IV - Panda's Trick
题目链接
题意:一个圆上顺序n个点,然后有m组连线,连接两点,要求这两点可以往圆内或圆外,问是否能构造出使得满足所有线段不相交
思路:2-sat,判断相交的建边,一个在内,一个在外,然后跑一下2-sat即可
代码:
#include
#include
#include
#include...
分类:
其他好文 时间:
2014-10-26 19:46:35
阅读次数:
199
My story happened in the winter of 2012, the first year I began to work in Beijing. It was a cold weekend, and I went skiing with two of my coworker.....
分类:
其他好文 时间:
2014-10-26 01:38:41
阅读次数:
142
点更新树链剖分入门题,诶 错了好多发,提到同一点时没更新,边数组开小了一倍。#include #include #include #include using namespace std;#define lson l,mid,rt size[son[x]]) son[x] = cc; }}vo...
分类:
其他好文 时间:
2014-10-25 17:08:02
阅读次数:
163
Python 3.4 注释 ? ? # this is a comment print ? ? print(format(input, format_string)) ? ? print(‘the story be about {0}, {1} and {other}‘.format(‘apple‘, ‘monkey‘, other=‘cc‘)) ? ? print(‘t...
分类:
编程语言 时间:
2014-10-24 19:17:36
阅读次数:
208
首先建立一个swift项目,把storyboard的内容删掉,添加一个Navigation Controller,然后设置storyboard对应界面的class,在Navigation Controller界面设置View Controller的is initial View Controller,这里使用的自定义列表内容,所以要新建一个继承UITableViewCell的类,然后设置story...
分类:
编程语言 时间:
2014-10-19 00:05:50
阅读次数:
326
题目链接:hdu 3966 Aragorn's Story
题目大意:给定一个棵树,然后三种操作
Q x:查询节点x的值I x y w:节点x到y这条路径上所有节点的值增加wD x y w:节点x到y这条路径上所有节点的值减少w
解题思路:树链剖分,用树状数组维护每个节点的值。
#pragma comment(linker, "/STACK:1024000000,1024000...
分类:
编程语言 时间:
2014-10-17 10:19:10
阅读次数:
225
#include"stdfx.h"int main(){ string strPath = "D:\\TEST\\vs2013Test\\TextQuery\\Beautiful Story.txt"; vector strData; ifstream sourceFiles(strPath, io...
分类:
编程语言 时间:
2014-10-16 18:12:02
阅读次数:
190
Wang Xifeng's Little Plot
Problem Description
《Dream of the Red Chamber》(also 《The Story of the Stone》) is one of the Four Great Classical Novels of Chinese literature, and it is commonly ...
分类:
其他好文 时间:
2014-10-14 21:15:09
阅读次数:
231