2016年3月13日

J. Leader in Tree Land

摘要: 小结:逆元替代分数的这种做法还没有理解。 阅读全文

posted @ 2016-03-13 10:43 Tob's_the_top 阅读(173) 评论(0) 推荐(0) 编辑

2016年3月12日

BestCoder Round #75 解题报告

摘要: 1.King's Cake 2.King's Phone 3.King's Order   阅读全文

posted @ 2016-03-12 21:26 Tob's_the_top 阅读(208) 评论(0) 推荐(0) 编辑

E. The shortest problem

摘要: http://www.bnuoj.com/v3/contest_show.php?cid=7612#info http://www.bnuoj.com/v3/contest_show.php?cid=7612#problem/ 题解:http://bestcoder.hdu.edu.cn/blog/ 阅读全文

posted @ 2016-03-12 10:56 Tob's_the_top 阅读(89) 评论(0) 推荐(0) 编辑

2016年3月11日

【私:】参加2016华为软件精英挑战赛浙大宣讲会感受

该文被密码保护。 阅读全文

posted @ 2016-03-11 23:30 Tob's_the_top 阅读(1) 评论(0) 推荐(0) 编辑

2016年3月10日

Manacher算法 线性时间求最大回文子串长度

摘要: 原理性的东西在这里得到:http://www.open-open.com/lib/view/open1419150233417.html /*Manacher算法*/ #include<iostream> #include<vector> #include<map> #include<stdio.h 阅读全文

posted @ 2016-03-10 16:04 Tob's_the_top 阅读(221) 评论(0) 推荐(0) 编辑

2016年3月9日

算法导论学习 之 分治排序

摘要: code: #include<iostream> #include<vector> #include<map> using namespace std; void Merge(int* a,int l,int m,int r) { int b[11],c[11]; int i,j,lb,lc,tb, 阅读全文

posted @ 2016-03-09 11:45 Tob's_the_top 阅读(228) 评论(0) 推荐(0) 编辑

算法导论学习 之 插入排序

摘要: 刚刚开始系统学习算法导论和c++,每次学习的算法都用c++ 实现一边,加深理解,方便回顾。 先从最简单的插入排序开始吧: code: #include<iostream> #include<vector> #include<map> using namespace std; void Inserti 阅读全文

posted @ 2016-03-09 01:01 Tob's_the_top 阅读(216) 评论(0) 推荐(0) 编辑

2016年1月31日

python 的模块导入

摘要: 众所周知,利用import + module_name可以导入模块,但在IDLE里导入某个模块后,期间跟新了模块,然后使用语句import + module_name,重新导入模块却任然是就得模块功能,必须将IDLE关闭重新打开,导入模块才会有新功能。这是什么原因?愚初步猜测:如果在一个IDLE中, 阅读全文

posted @ 2016-01-31 16:17 Tob's_the_top 阅读(204) 评论(0) 推荐(0) 编辑

Python 模块的发布与上传

摘要: 实现python函数模块可重用以及可共享需要将模块发布,安装到计算机副本并上传到PyPI。需要进行一下工作: 1.发布准备 将要发布的模块代码放在一个文件中(以.py作为后缀),例如:yyq_print.py.创建一个文件夹,将模块文件放在此文件夹中,并在文件夹中新建一个setup.py文件,文件代 阅读全文

posted @ 2016-01-31 14:45 Tob's_the_top 阅读(2293) 评论(0) 推荐(0) 编辑

2016年1月28日

Python 自学笔记《1》

摘要: 引入模块 import module_name 例如:import math 查看模块内容 dir(module_name) 例如:dir(math) 查看模块内函数的用法 help(module_name.function) 例如:help(math.sin) locals() BIF:返回当前作 阅读全文

posted @ 2016-01-28 17:20 Tob's_the_top 阅读(146) 评论(0) 推荐(0) 编辑

导航