码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果
uva270 - Lining Up(暴力)
题目:uva270 - Lining Up 解题思路:对于每个点都计算一下,它与其他点的斜率,这样就可以判断与这个点在同一条直线的点。每个点都这样做,维护最大值就可以了。                  注意斜率不存在的情况。                  找相同斜率的时候用了multiset。 代码: #include #include #include #...
分类:其他好文   时间:2014-07-30 10:01:35    阅读次数:239
HDU - 2254 奥运 (求等比数列和)
Description 北京迎来了第一个奥运会,我们的欢呼声响彻中国大地,所以今年的奥运金牌 day day up! 比尔盖兹坐上鸟巢里,手里摇着小纸扇,看的不亦乐乎,被俺们健儿的顽强拼搏的精神深深的感动了。反正我的钱也多的没地方放了,他对自己说,我自己也来举办一个奥运会,看谁的更火。不过他的奥运会很特别: 1 参加人员必须是中国人; 2 至少会加法运算(因为要计算本人获得的金...
分类:其他好文   时间:2014-07-30 01:04:53    阅读次数:245
Error Handling 错误处理
This tutorials aims to teach you how to create an error handler for your programs to deal with the clean-up operation when something in the code goes ...
分类:其他好文   时间:2014-07-29 16:59:32    阅读次数:349
SSH Tunneling Explained
SSH Tunneling Explained Recently I wanted to set up a remote desktop sharing session from home pc to my laptop. While going through the set up guide I...
分类:其他好文   时间:2014-07-29 16:55:54    阅读次数:386
centos7 use ifconfig command
[1]Defaultnoinstallifconfigcommand,ifyouwanttouseifconfigneedinstallnet-toolsyum-yinstallnet-tools[root@mariadb~]#ifconfig eth0:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500 inet192.168.1.123netmask255.255.255.0broadcast192.168.1.255 inet6fe80::21..
分类:其他好文   时间:2014-07-29 15:53:19    阅读次数:324
HDU4597:Play Game(记忆化)
Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:其他好文   时间:2014-07-29 15:03:28    阅读次数:248
(校赛) URAL 1993 This cheeseburger you don't need
Master Yoda is the oldest member of the Jedi Council. He conducts preparatory classes of little Younglings up to the moment they get a mentor. All Younglings adore master Yoda and they hope to grow...
分类:其他好文   时间:2014-07-29 14:59:48    阅读次数:266
HDU - 2604 Queuing (矩阵快速幂)
Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our daily life. There are many people lined up at the lunch time. ...
分类:其他好文   时间:2014-07-29 14:47:38    阅读次数:268
使用html editor 打开freemarker文件
freemarker模板文件使用jboss tools下提供的FreeMarker IDE,在线安装的方法是:Help –> Install New Software 点击and,再出来的对话框中的Location中输入:http://download.jboss.org/jbosstools/up...
分类:Web程序   时间:2014-07-29 13:35:08    阅读次数:271
MemSQL Start[c]UP 2.0 - Round 1 B. 4-point polyline (线段的 枚举)
昨天cf做的不好,居然挂零了,还是1点开始的呢。,,,a题少了一个条件,没判断长度。写一下B题吧题目链接题意:给出(n, m),可以得到一个矩形让你依次连接矩形内的4个点使它们的长度和最长,而这三条线段可以相交、交叉分析:这种情况下,枚举对角线的四个点,当时我也想过,我只用了其中的一种方式,其实有四...
分类:数据库   时间:2014-07-29 11:26:56    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!