题目信息1093. Count PAT’s (25)时间限制120 ms
内存限制65536 kB
代码长度限制16000 B
The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the secon...
分类:
其他好文 时间:
2016-05-18 19:31:34
阅读次数:
116
湘大oj地址:http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1086
菱形
时间限制:1000 ms | 内存限制:65536 KB
Description
小明现在是湘潭大学10级计算机系的学生。他的C语言学的还算可以,但是今天老师布置的一道课后作业题却把他难住了。题...
分类:
其他好文 时间:
2016-05-18 19:33:24
阅读次数:
224
题目信息1094. The Largest Generation (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generat...
分类:
其他好文 时间:
2016-05-18 19:32:17
阅读次数:
200
湘大oj题目地址:传送门
Cycloid
时间限制:1000 ms | 内存限制:65536 KB
Description
A cycloid is the curve traced by a point on the rim of a circular wheel as the wheel rolls along a straight li...
分类:
其他好文 时间:
2016-05-18 19:32:52
阅读次数:
160
题目信息1095. Cars on Campus (30)时间限制220 ms
内存限制65536 kB
代码长度限制16000 B
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the...
分类:
其他好文 时间:
2016-05-18 19:31:13
阅读次数:
257
题目信息1101. Quick Sort (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the...
分类:
其他好文 时间:
2016-05-18 19:33:03
阅读次数:
155
题目信息1096. Consecutive Factors (20)时间限制400 ms
内存限制65536 kB
代码长度限制16000 B
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored a...
分类:
其他好文 时间:
2016-05-18 19:32:52
阅读次数:
181
题目信息1097. Deduplication on a Linked List (25)时间限制300 ms
内存限制65536 kB
代码长度限制16000 B
Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute value...
分类:
其他好文 时间:
2016-05-18 19:33:10
阅读次数:
164
算法题目大都比较抽象,可以通过举例子来搞清楚具体的逻辑。题目:从上到下,按照从左往右打印二叉树每一层的结点。二叉树的结点:class BinaryTreeNode{
int mValue;
BinaryTreeNode mLeft;;
BinaryTreeNode mRight;
}思路:
我们发现规律:先遍历的结点,它的子节点也会先被遍历到,...
分类:
其他好文 时间:
2016-05-18 19:32:10
阅读次数:
142
题目信息1099. Build A Binary Search Tree (30)时间限制100 ms
内存限制65536 kB
代码长度限制16000 B
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree...
分类:
其他好文 时间:
2016-05-18 19:32:10
阅读次数:
132
题目信息1103. Integer Factorization (30)时间限制1200 ms
内存限制65536 kB
代码长度限制16000 B
The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are su...
分类:
其他好文 时间:
2016-05-18 19:29:49
阅读次数:
102
题目信息1100. Mars Numbers (20)时间限制400 ms
内存限制65536 kB
代码长度限制16000 B
People on Mars count their numbers with base 13:Zero on Earth is called “tret” on Mars.
The numbers 1 to 12 on Earch is called “jan,...
分类:
其他好文 时间:
2016-05-18 19:28:45
阅读次数:
239
KINECT+opencv基于骨骼信息对视频进行动作识别环境:kinect1.7+opencv2.4+vc2015
使用kinect获取并按批处理三维空间内的骨骼信息
基于视频帧差计算各关节运动向量并与本地模板匹配
目录KINECTopencv基于骨骼信息对视频进行动作识别
目录
写在前面
对当前帧处理并匹配
kinect对帧的处理
与模板的向量余弦计算
根据动态时间规划法匹配
记录并保存模板到本地...
分类:
其他好文 时间:
2016-05-18 19:30:55
阅读次数:
294
题目信息1102. Invert a Binary Tree (25)时间限制400 ms
内存限制65536 kB
代码长度限制16000 B
The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t i...
分类:
其他好文 时间:
2016-05-18 19:28:27
阅读次数:
159
0、Matplotlib -- 简介.note
官网:http://matplotlib.org/
1、Matplotlib -- 绘制多项式函数.note
#-*- coding:utf-8 -*-
#绘制多项式函数
import numpy as np
import matplotlib.pyplot as plt
#以自然数序列作为多项式的系数,使用polyld函数...
分类:
其他好文 时间:
2016-05-18 19:31:02
阅读次数:
575
这个题是给出一个数组,求该数组元素所构成图形能装水的量,如上所示图形给出了一个示例,这个题是一道很复杂的题,这种题型必须得在纸上画一画可能出现的情况,否则真的很难得出正确答案的。我的思路是去找低谷,有低谷一定可以构成”容器“,需要注意的细节如下:
1. 首先找到低谷,找连续递减的序列的最后位置,找到该位置了,再去找递增的序列,找到顶部,为了方便说明我画图分析一些容易出错的地方吧。
...
分类:
其他好文 时间:
2016-05-18 19:31:02
阅读次数:
157
题目信息1105. Spiral Matrix (25)时间限制150 ms
内存限制65536 kB
代码长度限制16000 B
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is fil...
分类:
其他好文 时间:
2016-05-18 19:30:24
阅读次数:
158