
bfs
Jade1998
这个作者很懒,什么都没留下…
展开
-
Catch That Cow
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 ≤ 100,0原创 2017-07-30 19:40:15 · 174 阅读 · 0 评论 -
Pots
You 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 ≤ 2) from the tap;DROP(i) empty the po原创 2017-08-01 19:46:08 · 206 阅读 · 0 评论 -
Contest1275 - 2017区域赛组队&&个人训练赛17
问题 B: 完美序列时间限制: 1 Sec 内存限制: 128 MB提交: 29 解决: 18[提交][状态][讨论版]题目描述已知一个长度为l的序列:b1,b2,b3,…,bl (1输入输入的第一行为一个正整数T (T每组测试数据包含两个正整数n,l (1输出对于每组测试数据,输出一行包含一个整数,代表答案对1000000007取余原创 2017-11-27 19:36:22 · 800 阅读 · 0 评论