- "... so forward this to ten other people, to prove that you believe the emperor has - 题意是说发短信,每个人只会给一个人发,问从哪个人开始发,能传到的人最多 - 思路是每个人开始做一遍dfs... - 毫无意外的TLE了 
 阅读更多
- http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83084#problem/I - I - Fire Game - **Time Limit:**1000MS **Memory Limit:**32768KB 64bit IO Format:%I64d & %I64u - Submit Status - Description - Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid … 
 阅读更多
- 好爽,一遍ac - 1 2 3 /************************************************************************* 4 > File Name: code/2015summer/searching/H.cpp 5 > Author: 111qqz 6 > Email: rkz2013@126.com 7 > Created Time: 2015年07月27日 星期一 09时11分28秒 8 …
 阅读更多
- 非常可乐- **Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 
 Total Submission(s): 7194 Accepted Submission(s): 2865
 **- Problem Description - 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正 … 
 阅读更多
- Oil Deposits- **Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) 
 Total Submission(s): 17683 Accepted Submission(s): 10172
 **- Problem Description - The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular … 
 阅读更多
- Find a way- ****Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 
 Total Submission(s): 6221 Accepted Submission(s): 2070
 **- ** - Problem Description - Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. … 
 阅读更多
- 迷宫问题 - 1 2 3 4 /************************************************************************* 5 > File Name: code/2015summer/searching/KK.cpp 6 > Author: 111qqz 7 > Email: rkz2013@126.com 8 > Created Time: 2015年07月25日 星期六 13时33分00秒 9 …
 阅读更多
- http://poj.org/problem?id=3087 - 用bfs写的,但是其实就是个模拟啊喂! - 只有一种操作,何谈最短? 一直往下写就行了. - 有一点疑惑,就是map的初始值 - 比如我定义的 map<string,int>d;它的初始的value是什么?随机值?0?还是什么,百度了下,没找到,求指教. 
 阅读更多
- http://poj.org/problem?id=3126 - 题意是说,给定两个四位素数a b 问从a变换到b,最少需要变换几次. 变换的要求是,每次只能改变一个数字,而且中间过程得到的四位数也必须为素数. 因为提到最少变换几次,容易想到bfs,bfs第一次搜到的一定是最短步数. 
 阅读更多
- http://poj.org/problem?id=3279 - 反转类问题. - 有N*M个方格,每个上面有数字0或者1 - 操作一个方格,这个方格即其相邻的四个方格(有公共边)会改变状态(由0变1或者由1变0) - 问至少需要多少次操作,所有的状态都为0 
 阅读更多