摘要: 题目描述 Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electron 阅读全文
posted @ 2022-06-02 18:01 灰鲭鲨 阅读(37) 评论(0) 推荐(0)
摘要: 题目描述 To avoid unsightly burns while tanning, each of the$ C (1 ≤ C ≤ 2500) $cows must cover her hide with sunscreen when they're at the beach. Cow i h 阅读全文
posted @ 2022-06-02 17:45 灰鲭鲨 阅读(76) 评论(0) 推荐(0)
摘要: 题目描述 FJ丢失了他的一头牛,他决定追回他的牛。已知FJ和牛在一条直线上,初始位置分别为x和y,假定牛在原地不动。FJ的行走方式很特别:他每一次可以前进一步、后退一步或者直接走到2*x的位置。计算他至少需要几步追上他的牛。 输入格式 第一行为一个整数t(≤10),表示数据组数;接下来每行包含一个两 阅读全文
posted @ 2022-06-02 17:28 灰鲭鲨 阅读(76) 评论(0) 推荐(0)
摘要: 题目描述 Farmer John has taken his cows on a trip to the city! As the sun sets, the cows gaze at the city horizon and observe the beautiful silhouettes fo 阅读全文
posted @ 2022-06-02 17:24 灰鲭鲨 阅读(41) 评论(0) 推荐(0)
摘要: 题目描述 FJ 知道,智商高的奶牛产奶量也大,所以他为奶牛们准备了一个翻动瓦片的益智游戏。 在一个 $M \times N$ 的方阵上($1 \leq M,N \leq 15$),每个格子都有一个可以翻转的瓦片。瓦片的一面是黑色,另一面是白色。对一个瓦片翻转,可以让它的颜色由黑到白,或是由白到黑。 阅读全文
posted @ 2022-06-02 17:10 灰鲭鲨 阅读(36) 评论(0) 推荐(0)