摘要:
题目链接:http://poj.org/problem?id=1300You are a butler in a large mansion. This mansion has so many rooms that they are merely referred to by number (roo... 阅读全文
摘要:
题目链接:http://codeforces.com/contest/499A. Watching a movieYou have decided to watch the best moments of some movie. There are two buttons on your playe... 阅读全文
摘要:
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=34985We define a kind of strings as elegant string: among all the substrings of an elegant strin... 阅读全文
摘要:
题目链接:B. Secret CombinationYou got a box with a combination lock. The lock has a display showingndigits. There are two buttons on the box, each button ... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5120A ring is a 2-D figure bounded by two circles sharing the common center. The radius for these circl... 阅读全文
摘要:
题目链接:http://poj.org/problem?id=2002A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a ... 阅读全文
摘要:
题目链接:http://codeforces.com/contest/493A. Vasya and FootballVasya has started watching football games. He has learned that for some fouls the players r... 阅读全文
摘要:
原文地址:http://www.cnblogs.com/marvin/archive/2010/01/20/1652088.html 百度原CTO李一男经典语录 【1】好好规划自己的路,不要跟着感觉走!根据个人的理想决策安排,绝大部分人并不指望成为什么院士或教授,而是希望活得滋润一些,爽一些... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4005In the war, the intelligence about the enemy is very important. Now, our troop has mastered the sit... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4004The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. O... 阅读全文
摘要:
题目链接:http://codeforces.com/contest/488A. Giga TowerGiga Tower is the tallest and deepest building in Cyberland. There are17 777 777 777floors, numbere... 阅读全文
摘要:
题目链接:http://codeforces.com/contest/489A:SwapSortIn this problem your goal is to sort an array consisting ofnintegers in at mostnswaps. For the given a... 阅读全文
摘要:
半平面交算法及简单应用半平面:一条直线把二维平面分成两个平面。半平面交:在二维几何平面上,给出若干个半平面,求它们的公共部分半平面交的结果:1.凸多边形(后面会讲解到)2.无界,因为有可能若干半平面没有形成封闭3.直线,线段,点,空(属于特殊情况吧)算法:1:根据上图可... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3487YaoYao is fond of playing his chains. He has a chain containing n diamonds on it. Diamonds are numb... 阅读全文
摘要:
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1111A poker hand consists of 5 cards dealt from the deck. Poker hands are ranked by ... 阅读全文