使用VALUES将数据插入到数据库表中,每次只能插入一条数据。下面使用循环插入500000条数据到表MEMO中declare typeid_table_type is table of numberindex by binary_integer;name_table_type is table of...
分类:
其他好文 时间:
2014-08-21 13:05:34
阅读次数:
203
1.树的路径长度
树的路径长度是从树根到树中每一结点的路径长度之和。在结点数目相同的二叉树中,完全二叉树的路径长度最短。
2.树的带权路径长度(Weighted Path Length of Tree,简记为WPL)
结点的权:在一些应用中,赋予树中结点的一个有某种意义的实数。
结点的带权路径长度:结点到树根之间的路径长度与该结点上权的乘积。
树的带权路...
分类:
其他好文 时间:
2014-08-21 09:51:33
阅读次数:
301
拿CTSC的原题出NOIP模拟题真的好吗?其实挺水的,但是某人报复社会的题面让人望而却步。。。记忆化搜索,刘老师黑书上说的很详细了。可以在wikioi上提交。#include #define rep(_i, _j) for(int _i = 1; _i <= _j; ++_i)const int i...
分类:
其他好文 时间:
2014-08-21 06:19:33
阅读次数:
343
之前预研过2D骨骼动画编辑工具SPINE,感觉其比cocosStudio及Unity3D自带的骨骼动画编辑器(原生Sprite Tree或Uni2D)要更适合有3DSMax习惯的美术,即Spine更容易被美术上手。因为当时教程极少,官网的文字说明还是英文,所以写了一个简明扼要的文档,还是抛砖引玉。之...
分类:
其他好文 时间:
2014-08-21 01:31:43
阅读次数:
316
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:
其他好文 时间:
2014-08-21 00:01:23
阅读次数:
293
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extr...
分类:
其他好文 时间:
2014-08-20 22:47:33
阅读次数:
297
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-08-20 22:21:12
阅读次数:
210
题意: 给你一个数列,然后有n个查询,问你给定区间中不同数字的和是多少。思路还是比较难想的,起码对于蒟蒻我来说。将区间按照先右端点,后左端点从小到大排序之后,对于每个查询,我只要维护每个数字出现的最后一次就可以了(这个结论稍微想一下就可以证明是正确的)。然后就是简单的点更新,区间求和问题了~#inc...
分类:
其他好文 时间:
2014-08-20 21:06:42
阅读次数:
204
UVA 1556 - Disk Tree
题目链接
题意:给定一些字符串,表示目录,要求输出整体目录的结构
思路:跟Trie树差不多,只不过是每个结点存放的是一个字符串,利用map映射即可
代码:
#include
#include
#include
#include
#include
#include
#include
using namespace ...
分类:
其他好文 时间:
2014-08-20 16:27:22
阅读次数:
167
sh: /usr/bin/xtrabackup: cannot execute binary fileinnobackupex: Error: no 'mysqld' group in MySQL options at /usr/bin/innobackupex line 4397.描述:手头上有现...
分类:
其他好文 时间:
2014-08-20 15:44:52
阅读次数:
424