关闭

HDU - 5618 Jam's problem again(cdq分治和整体二分)

Problem Description Jam like to solve the problem which on the 3D-axis,given N(1≤N≤100000) points (x,y,z)(1≤x,y,z≤100000) If two point such as (xi,yi,zi) and (xj,yj,zj) xi≥xj yi≥yj zi≥zj, the bigger one level add 1 Ask for the each level of the point. ...
阅读(3) 评论(0)

HDU - 5572 An Easy Physics Problem(计算几何)

Problem Description On an infinite smooth table, there's a big round fixed cylinder and a little ball whose volume can be ignored. Currently the ball stands still at point A, then we'll give it an initial speed and a direction. If the ball hits the cylind...
阅读(24) 评论(0)

ACM计算几何题目推荐

原文地址:http://blog.csdn.net/zsc09_leaf/article/details/6331809 快出去比赛了,这三四天尽量多刷一点计算几何的题了,emmmm紧张诶 //第一期 计算几何题的特点与做题要领: 1.大部分不会很难,少部分题目思路很巧妙 2.做计算几何题目,模板很重要,模板必须高度可靠。 3.要注意代码的组织,因为计算几何...
阅读(16) 评论(0)

POJ - 3348 Cows(求凸包的面积)

Description Your friend to the south is interested in building fences and turning plowshares into swords. In order to help with his overseas adventure, they are forced to save money on buying fence posts by using trees as fence posts wherever possible. Gi...
阅读(11) 评论(0)

POJ - 3241 Object Clustering(莫队算法/曼哈顿最小生成树)

Description We have N (N ≤ 10000) objects, and wish to classify them into several groups by judgement of their resemblance. To simply the model, each object has 2 indexes a and b (a, b ≤ 500). The resemblance of object i and object j is defined by dij = |...
阅读(26) 评论(0)

CodeForces - 191A Dynasty Puzzles(dp)

The ancient Berlanders believed that the longer the name, the more important its bearer is. Thus, Berland kings were famous for their long names. But long names are somewhat inconvenient, so the Berlanders started to abbreviate the names of their kings. Th...
阅读(29) 评论(0)

HDU - 5517 Triple(二维树状数组)

Problem Description Given the finite multi-set A of n pairs of integers, an another finite multi-set B of m triples of integers, we define the product of A and B as a multi-set C=A∗B={⟨a,c,d⟩∣⟨a,b⟩∈A, ⟨c,d,e⟩∈B and b=e} For each ⟨a,b,c⟩∈C, its BETTER set...
阅读(41) 评论(0)

HDU - 5536 Chip Factory(字典树)

Problem Description John is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of products, every processor has a serial number. More specifically, the factory produces n chips today, the i-th chip produce...
阅读(40) 评论(0)

PHP实现验证码功能

//先做个记录,功能还不完善,界面还太丑 画图的时候要安装扩展库gd2,我安装的命令是sudo apt-get install php-gd,加上php版本号之后说找不到包,就多尝试几次了 captcha.php <?php //设置session,开启会话功能 session_start(); //设置验证码图片大小 $image = imagecrea...
阅读(59) 评论(0)

Ubuntu17.04重启搜狗输入法

//原文:http://blog.csdn.net/zhangxiao93/article/details/53267676、 搜狗输入法老是出问题,输入不了中文,正写代码写的起劲,就不想用关机这种方法来解决这个问题了,百度了一下,用下面的命令解决这个问题,真的有用,嘻嘻嘻嘻 #!/bin/sh pidof fcitx | xargs kill pidof sogou-qimpanel | x...
阅读(82) 评论(0)

PHP+MySql实现一个简单的留言板

//嗯,跟着书学的,代码不是自己写的,但是都能理解,有时间自己去写个好看一点的吼吼吼~ 留言板是接触WEB开发的基础,写一个留言板需要知道前端的一些基础标签,对数据库有一个了解会基础SQL语言,PHP基础知识,前段基础+数据库基础+PHP基础=>留言板。 前方高能哇(界面真的是吃藕诶… 先建一个数据库,数据库里有两张表,一个存账号密码,一个存留言信息 //创建数据库,里面有两张表Admin...
阅读(288) 评论(0)

POJ - Wall(计算几何凸包)

Description Once upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, that he would not listen to his Architect's proposals to build a beautiful brick wall with a perfect sha...
阅读(109) 评论(0)

PHP连接数据库基础知识及易错点

emmmmm,想用PHP写计网的课设,所以滚去看了下PHP连接数据库… 以下操作都是在Ubuntu17.04,LAMP下进行,且PHP数据库的扩展包为MySqli,MySqli为MySql的扩展版,在使用上稍有区别,比较容易混淆,要注意 下面是PHP连接数据库的一些最最最基本的操作额,分界线两边的代码要分开操作 一些细节问题: mysqli_connect()的第一个参数就是本机的地址,写...
阅读(1826) 评论(4)

HDU - 5489 Removed Interval (dp+线段树) 2015合肥网络赛

HDU - 5489 Removed Interval (dp+线段树) 2015合肥网络赛Problem Description Given a sequence of numbers A=a1,a2,…,aN, a subsequence b1,b2,…,bk of A is referred as increasing if b1<b2<…<bk. LY has just learned how to find the longest increasing subsequence (LIS). Now...
阅读(137) 评论(0)

记2017暑假这一段生活

记2017暑假这一段生活 两个多月,很长也很短,不长也不短,但它就这样过去了,很感慨。 如果说学到了什么东西,当然有很多,比如最基础的数据结构包括单调栈单调队列树状数组线段树等等,还有难一点的主席树啊,数链剖分啊以及了解离线处理可持久化…当然这些都是很实质上的东西,同时还有一些其他感悟。 原来大学也可以像高中一样每天好好的学习哇,真的很感谢两个队友在刚开始集训的时候把我从网易云这个坑里拉出来了(当然,现在还是喜欢网易云,真是有点觉得自己有一段时间很沉迷啊,仔细想想,如果自己荒废了今年的暑假,那现在我应该会...
阅读(118) 评论(1)
142条 共10页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:22097次
    • 积分:1516
    • 等级:
    • 排名:千里之外
    • 原创:135篇
    • 转载:7篇
    • 译文:0篇
    • 评论:6条
    最新评论