链接 : "Here!" 思路 : 很简单, 就是一个简单的状态搜索, 对于中间的任意状态 $number$ , 它都有三种转移方式 : 1.$(number 1)$, 2.$(number + 1)$, 3.$(number 2)$, 所以直接 $BFS$ 就好了, 需要注意的是判断一下最大值是否 ...
分类:
其他好文 时间:
2017-11-27 11:11:47
阅读次数:
144
1607: [Usaco2008 Dec]Patting Heads 轻拍牛头 Description 今天是贝茜的生日,为了庆祝自己的生日,贝茜邀你来玩一个游戏. 贝茜让N(1≤N≤100000)头奶牛坐成一个圈.除了1号与N号奶牛外,i号奶牛与i-l号和i+l号奶牛相邻.N号奶牛与1号奶牛相邻. ...
分类:
其他好文 时间:
2017-11-26 17:52:15
阅读次数:
140
题目描述 In an effort to better manage the grazing patterns of his cows, Farmer John has installed one-way cow paths all over his farm. The farm consists ...
分类:
其他好文 时间:
2017-11-26 15:52:32
阅读次数:
172
P3119 [USACO15JAN]草鉴定Grass Cownoisseur 题目描述 In an effort to better manage the grazing patterns of his cows, Farmer John has installed one-way cow path ...
分类:
其他好文 时间:
2017-11-26 11:14:57
阅读次数:
163
P3056 [USACO12NOV]笨牛Clumsy Cows 题目描述 Bessie the cow is trying to type a balanced string of parentheses into her new laptop, but she is sufficiently cl ...
分类:
其他好文 时间:
2017-11-24 22:50:17
阅读次数:
166
https://daniu.luogu.org/problemnew/show/P1561 题目描述 Farmer John has discovered that his cows produce higher quality milk when they are subject to stren ...
分类:
其他好文 时间:
2017-11-24 22:48:51
阅读次数:
146
P2969 [USACO09DEC]音符Music Notes P2969 [USACO09DEC]音符Music Notes P2969 [USACO09DEC]音符Music Notes 题目描述 FJ is going to teach his cows how to play a song. ...
分类:
其他好文 时间:
2017-11-23 08:10:47
阅读次数:
189
P1205 [USACO1.2]方块转换 Transformations P1205 [USACO1.2]方块转换 Transformations P1205 [USACO1.2]方块转换 Transformations 题目描述 一块N x N(1<=N<=10)正方形的黑白瓦片的图案要被转换成新 ...
分类:
其他好文 时间:
2017-11-22 21:51:59
阅读次数:
177
P2909 [USACO08OPEN]牛的车Cow Cars P2909 [USACO08OPEN]牛的车Cow Cars P2909 [USACO08OPEN]牛的车Cow Cars 题目描述 N (1 <= N <= 50,000) cows conveniently numbered 1..N ...
分类:
其他好文 时间:
2017-11-21 23:45:46
阅读次数:
198
1550: Fiber Communications Time Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByteTotal Submit: 3 Accepted:2 Description Farmer John wants to c ...
分类:
其他好文 时间:
2017-11-21 20:44:07
阅读次数:
138