摘要: http://www.patest.cn/contests/pat-a-practise/1095题目很简单,但是要注意切入的姿势,T T先按车牌排序,再按时间排序,判断相邻的是否是in-out匹配cnt用来计数#include#include#include#include#includeusin... 阅读全文
posted @ 2015-03-26 11:45 kylehz 阅读(277) 评论(0) 推荐(0) 编辑
摘要: http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=572&pid=1003乐乐又开始搭积木了。他想在昨天搭完的积木上,重新搭建,使得其中有连续W堆积木具有相同的高度,同时他希望高度最少为H。乐乐的积木都这了,也就是说不能... 阅读全文
posted @ 2015-03-23 18:09 kylehz 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=572&pid=1002看完电影后,乐乐回家玩起了积木。他已经搭好了n堆积木,他想通过调整积木,使得其中有连续W堆积木具有相同的高度,同时他希望高度恰好为H。乐乐的积木都... 阅读全文
posted @ 2015-03-22 23:03 kylehz 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Ubuntu14.04 i386下hustoj安装的步骤1.安装mysqlapt-get install mysql-server mysql-client2.安装apache2apt-get install apache2这里要说明一下的就是ubuntu下的apache默认网页执行文件夹在/var... 阅读全文
posted @ 2015-03-21 19:19 kylehz 阅读(821) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lxcnn/article/details/4268033本文用的是python3.4,语法与python2.x有所不同,print后面要加括号,urllib->urllib.request:python内嵌了正则表达式,在re模块中。正则表达式的用途1.测... 阅读全文
posted @ 2015-03-20 21:56 kylehz 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Description给定一个范围[a,b] (0#includeusing namespace std;#define ll long longll n,m;int nn[65],mm[65];ll p[65];void inti(){ p[0]=1; for(int i=1;i<63... 阅读全文
posted @ 2015-03-09 23:05 kylehz 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?pid=1002&cid=570给定一个数组(a0,a1,a2,⋯an−1)和一个整数K, 请来判断一下是否存在二元组(i,j)(0≤i≤j#include#include#in... 阅读全文
posted @ 2015-03-09 01:43 kylehz 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/519/problem/给n个有经验的人和m个新手,要求将它们2:1 或者1:2组合,问最多可以组成几对通过线性规划:取最小值即可#include#includeusing namespace std;int main(){ int ... 阅读全文
posted @ 2015-03-05 17:12 kylehz 阅读(93) 评论(0) 推荐(0) 编辑
摘要: http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?pid=1002&cid=569题意是求L与R之间的完美的数,即从左到与右非递减排列,并且左边的数能整除右边的数 如931 ,999只要相邻的数能整除,其他也能整除。所以只要判断... 阅读全文
posted @ 2015-03-05 16:51 kylehz 阅读(112) 评论(0) 推荐(0) 编辑
摘要: bc#31-1 pairshttp://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?pid=1001&cid=569数轴上有n个点(x[i],0),(i=0,1,2,…,n−1),求解有几对点使得 that |x[b]−x[a]|≤k.... 阅读全文
posted @ 2015-03-05 13:45 kylehz 阅读(83) 评论(0) 推荐(0) 编辑