摘要: 题目描述 Farmer John's new barn consists of a huge circle of N stalls (2 <= N <= 3,000,000), numbered 0..N-1, with stall N-1 being adjacent to stall 0. At 阅读全文
posted @ 2017-11-07 21:14 J_william 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 题目描述 N (1 <= N <= 50,000) cows conveniently numbered 1..N are driving in separate cars along a highway in Cowtopia. Cow i can drive in any of M differ 阅读全文
posted @ 2017-11-07 21:12 J_william 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入输出格式 输入格式: 第一行为N,第二行有N个数,依次为第二列的格子中的数。(1<= N <= 10000) 输出格式: 一个数,即第一列中雷的摆放方案数。 输入输出样例 输入样例#1: 复制 2 1 1 输出样例#1: 复制 2 题目描述 输入输出格式 第一行为N,第二行有N个数,依 阅读全文
posted @ 2017-11-07 21:11 J_william 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Farmer John and his cows are planning to leave town for a long vacation, and so FJ wants to temporarily close down his farm to save money in the 阅读全文
posted @ 2017-11-07 21:09 J_william 阅读(298) 评论(0) 推荐(0) 编辑