深搜广搜
Double__E
这个作者很懒,什么都没留下…
展开
-
HDU1495 非常可乐(看不懂你打我)
http://acm.hdu.edu.cn/showproblem.php?pid=1495大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 ...原创 2019-02-26 08:58:52 · 333 阅读 · 2 评论 -
kuangbin专题一H POJ3414 Pots(两种方法)
https://vjudge.net/contest/65959#problem/HYou are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤...原创 2019-03-10 20:36:59 · 514 阅读 · 0 评论 -
[kuangbin]搜索 POJ 3278 Catch That Cow(bfs)
题目链接Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤...原创 2019-04-16 18:59:47 · 140 阅读 · 0 评论 -
洛谷 P1706 全排列问题(dfs)
题目链接题目描述输出自然数1到n所有不重复的排列,即n的全排列,要求所产生的任一数字序列中不允许出现重复的数字。输入输出格式输入格式:n(1≤n≤9)输出格式:由1~n组成的所有不重复的数字序列,每行一个序列。每个数字保留5个常宽。输入输出样例输入样例#1:3输出样例#1: 1 2 3 1 ...原创 2019-04-17 18:59:16 · 402 阅读 · 0 评论