2016年9月11日

摘要: 卡拉兹(Callatz)猜想: 对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。这样一直反复砍下去,最后一定在某一步得到n=1。卡拉兹在1950年的世界数学家大会上公布了这个猜想,传说当时耶鲁大学师生齐动员,拼命想证明这个貌似很傻很天真的命题,结果闹得学 阅读全文
posted @ 2016-09-11 22:49 Annetree 阅读(129) 评论(0) 推荐(0)
 
摘要: Problem Description 过去的2012年对小Q来说是很悲催的一年,失恋了12次,每次都要郁闷1个来月。 好在小Q是个体育迷,在最痛苦的时候,他常常用观看各种体育节目来麻醉自己,比如伦敦奥运会期间,小Q就常常在周末邀上一群单身同事聚在自己的蜗居,一边畅饮啤酒,一边吹牛。 小Q最喜欢看的 阅读全文
posted @ 2016-09-11 22:34 Annetree 阅读(212) 评论(0) 推荐(0)

2016年9月1日

摘要: Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Description You are given two pots, having the volume of A and B liters respectivel 阅读全文
posted @ 2016-09-01 16:48 Annetree 阅读(107) 评论(0) 推荐(0)
 
摘要: Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Description "How am I ever going to solve this problem?" said the pilot. Indeed, th 阅读全文
posted @ 2016-09-01 16:44 Annetree 阅读(170) 评论(0) 推荐(0)
 
摘要: Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Description Alice and Bob decide to play a funny game. At the beginning of the game 阅读全文
posted @ 2016-09-01 16:41 Annetree 阅读(143) 评论(0) 推荐(0)

2016年8月30日

摘要: Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Description Farmer John has received a noise complaint from his neighbor, Farmer Bo 阅读全文
posted @ 2016-08-30 23:19 Annetree 阅读(181) 评论(0) 推荐(0)
 
摘要: Time Limit:4000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description There is once a king and queen, rulers of an unnamed city, who have 阅读全文
posted @ 2016-08-30 23:08 Annetree 阅读(274) 评论(0) 推荐(0)

2016年8月4日

摘要: Description You are given two words (each word consists of upper-case English letters). Try to delete some letters from each word so that the resultin 阅读全文
posted @ 2016-08-04 08:11 Annetree 阅读(116) 评论(0) 推荐(0)
 
摘要: Description New Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size of the chessboard is n*n. A ston 阅读全文
posted @ 2016-08-04 08:08 Annetree 阅读(109) 评论(0) 推荐(0)
 
摘要: 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1562 Problem Description Happy new year to everybody!Now, I want you to guess a minimum number x betww 阅读全文
posted @ 2016-08-04 08:05 Annetree 阅读(264) 评论(0) 推荐(0)

2016年7月19日

摘要: SPFA是运用队列,把所有的点遍历到没有能更新的,点可以重复入队 如题http://www.cnblogs.com/Annetree/p/5682306.html dijkstra是每次找出离源点最近的点确定位置,不可重复确定 如题http://www.cnblogs.com/Annetree/p/ 阅读全文
posted @ 2016-07-19 06:55 Annetree 阅读(614) 评论(0) 推荐(0)

2016年7月18日

摘要: Problem Description XX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s(ek) e1,e 阅读全文
posted @ 2016-07-18 18:45 Annetree 阅读(165) 评论(0) 推荐(0)
 
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们 阅读全文
posted @ 2016-07-18 18:42 Annetree 阅读(297) 评论(0) 推荐(0)
 
摘要: 题目链接:http://poj.org/problem?id=2305 ime Limit: 1000MS Memory Limit: 65536K Total Submissions: 5326 Accepted: 2267 Description Given a base b and two n 阅读全文
posted @ 2016-07-18 18:40 Annetree 阅读(250) 评论(0) 推荐(0)
 
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2476 Given a list of monetary amounts in a standard format, please calculate the tot 阅读全文
posted @ 2016-07-18 18:34 Annetree 阅读(152) 评论(0) 推荐(0)