线段树的指针表示法。代码还有待消化。。代码里面多次用到了函数递归,感觉这次对递归又有了深一层的理解。 1 #define LOCAL 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct CNode...
分类:
其他好文 时间:
2014-07-16 19:07:23
阅读次数:
249
题意:给一些点,问这些点能够构成多少个凸四边形做法:1.直接判凸包2.逆向思维,判凹包,不是凹包就是凸包了怎样的四边形才是凹四边形呢?凹四边形总有一点在三个顶点的内部,假如顶点为A,B,C,D,则构成四个三角形:ABC,ACD,ABD,BCD,假如某一个三角形(最外的三个顶点)的面积等于另三个三角形...
分类:
其他好文 时间:
2014-07-15 22:54:16
阅读次数:
343
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425
Tautology
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9302
Accepted: 3549
Description
WFF 'N PROOF is a logic game played with dice. Each die has six...
分类:
其他好文 时间:
2014-07-14 18:45:09
阅读次数:
289
Codechef July Challenge 2014部分题解,包括Garden Game和Dish Owner这两题...
分类:
其他好文 时间:
2014-07-14 18:15:59
阅读次数:
229
1.背景 采样算法是机器学习中比较常用,也比较容易实现的(出去分层采样)。常用的采样算法有以下几种(来自百度知道): 一、单纯随机抽样(simple random sampling)
将调查总体全部观察单位编号,再用抽签法或随机数字表随机抽取部分观察单位组成样本。
优点:操作简单,均数、率及相应的标准误计算简单。
缺点:总体较大时,难以一一编号。
二、系统抽样(systemat...
分类:
编程语言 时间:
2014-07-14 18:08:55
阅读次数:
339
原文地址:http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Basic-Project
3、Basic Project(基本项目)
一个Gradle项目的构建过程定义在build.gradle文件中,位于项目的根目录下。
3.1 Simple build files(简单的构建文件)
...
分类:
移动开发 时间:
2014-07-14 17:24:31
阅读次数:
374
无书面许可请勿转载
由于第三章内容较长,我将分做几个部分来翻译。
Advanced Playbooks
So far the playbooks that we have looked at are simple and just run a number of
modules in order. Ansible allows much more control over the execut...
分类:
其他好文 时间:
2014-07-14 14:01:01
阅读次数:
271
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29921
Accepted: 12975
Description
Flip game is played on a rectangular 4x4 field with two-sided...
分类:
其他好文 时间:
2014-07-14 12:46:46
阅读次数:
229
[转]Part 1 - Expressiveness of Simple TransformationsSimple Transformations are a SAP proprietary programming language that is integrated into ABAP by ...
分类:
其他好文 时间:
2014-07-14 10:49:11
阅读次数:
257