Tree view code#include #include #include #include #include using namespace std;
const int N = 10010;
int n, k, pre[N], ans, mi, rt, siz[N], num;
bool ...
分类:
其他好文 时间:
2014-09-20 14:00:57
阅读次数:
130
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-09-20 07:45:26
阅读次数:
195
Magento PDF发票,支持中文,以及修改的办法.如果让magento的PDF发票支持中文.Magento生成PDF发票.使用的是zend framework的zend_pdf类.下面是一个简单的,使用zend framework生成pdf文件的用法.[code]setFont($font, $...
分类:
其他好文 时间:
2014-09-20 01:08:26
阅读次数:
217
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5018
思路:直接计算判断就是啦,注意一点要判断给出的A,B。。。。
code
#include
#include
#include
#include
#include
using namespace std;
int main()
{
int F[1000];
int...
分类:
其他好文 时间:
2014-09-19 22:33:46
阅读次数:
267
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5019
题目大意:给出A,B两个数,求第k大的公约数,如果没有输出-1
思路:直接把A,B的公约数全部求出来,然后找出来就行啦,当时没有注意数据大小居然是10^12,用的int ,所以果断错啦,赛完才发现,坑呀。。。。。
注意要用long long或是__int64。。。。。
code:
#i...
分类:
其他好文 时间:
2014-09-19 22:32:24
阅读次数:
215
1 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 #coding:utf-8 2 3 #Python的线程池实现 4 5 import...
分类:
编程语言 时间:
2014-09-19 22:25:06
阅读次数:
291
http://zeromq.orgZeroMQ\zero-em-queue\, \ØMQ\:?Ø Connect your code in any language, on any platform.?Ø Carries messages across inproc, IPC, TCP, TPI.....
分类:
其他好文 时间:
2014-09-19 22:23:46
阅读次数:
190
HereiswhathappenedtodaythatIrewrite"DeleteRecord"Method.IusedInvokeMethod("RefreshBusComp")onaApplet.code:this.BusComp().InvokeMethod("RefreshBusComp");Igetthiserror:SBL-DAT-00322:Thespecializedmethod‘RefreshBusComp‘isnotsupportedonBusinessComponent‘A‘usedb..
分类:
其他好文 时间:
2014-09-19 19:42:57
阅读次数:
773
ALTERTABLE`donson_wage`DROPPRIMARYKEY,ADDPRIMARYKEY(`User_name`,`User_Code`);
分类:
数据库 时间:
2014-09-19 19:37:16
阅读次数:
165
使用cecil 完成 code injection...
分类:
其他好文 时间:
2014-09-19 19:27:56
阅读次数:
162