#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
题目链接:
http://poj.org/problem?id=3207
Ikki's Story IV - Panda's Trick
Time Limit: 1000MS
Memory Limit: 131072K
Total Submissions: 8063
Accepted: 2969
Desc...
分类:
其他好文 时间:
2014-10-09 03:29:17
阅读次数:
290
题意: 树上路径之间的点统一加减k,查询某点的值解法:不会LCA的解法,于是用树链剖分了,比较简单的剖分,然后用线段树维护就行了,相当于区间更新,单点查询,查询点 i 的值时,只需在线段树中查询pos[u]位置的值即可。加IO优化900+ms代码:#include #include #include...
分类:
其他好文 时间:
2014-10-07 17:16:13
阅读次数:
221
http://poj.org/problem?id=3517And Then There Was OneTime Limit:5000MSMemory Limit:65536KTotal Submissions:4805Accepted:2546DescriptionLet’s play a sto...
分类:
其他好文 时间:
2014-10-07 13:05:13
阅读次数:
130
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/题意:Say you have an array for which theithelement is the price of a given sto...
分类:
编程语言 时间:
2014-10-06 23:54:02
阅读次数:
266
Code path:
https://github.com/bluesilence/Lisp/tree/master/clojure/projects/room-escape
As I have been a fan of room-escape games, there have always been a desire to make my own story of a roo...
分类:
Web程序 时间:
2014-10-05 17:44:38
阅读次数:
269
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/script.clj
Extract Story to TXT
In order to move the story from .clj into .txt, I lever...
分类:
Web程序 时间:
2014-10-05 17:36:38
阅读次数:
214
题目大意:圆盘上顺次安放0, 1, 2, …, n – 1的点,每次给出两个点需要连边,可以选择在圆盘的正面连边或在圆盘的反面连边,问是否存在一种方案使得所有连线不相交?思路:本问题可以等价成:圆盘上原本有N条线,每条线在正反面都有画上,将在正反面的两条线只保留一根,问是否存在一种方案使得所有连线不...
分类:
其他好文 时间:
2014-10-05 14:43:28
阅读次数:
198
树链剖分+树状数组
Aragorn's Story
Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2934 Accepted Submission(s): 806
Problem Descriptio...
分类:
其他好文 时间:
2014-10-01 23:30:41
阅读次数:
300