摘要: Farmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 B . Bessie will travel to B the... 阅读全文
posted @ 2016-01-26 12:28 Sunny糖果 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Farmer John's cows keep escaping from his farm and causing mischief. To try and prevent them from leaving, he purchases a fancy combination lock to ke... 阅读全文
posted @ 2016-01-25 02:19 Sunny糖果 阅读(247) 评论(0) 推荐(0) 编辑
摘要: The following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions ma... 阅读全文
posted @ 2016-01-25 02:19 Sunny糖果 阅读(232) 评论(0) 推荐(0) 编辑
摘要: It was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation,... 阅读全文
posted @ 2016-01-25 02:17 Sunny糖果 阅读(200) 评论(0) 推荐(0) 编辑
摘要: The Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocery stores so... 阅读全文
posted @ 2016-01-25 02:16 Sunny糖果 阅读(309) 评论(0) 推荐(0) 编辑
摘要: A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a palindrome; the number 7... 阅读全文
posted @ 2016-01-25 02:15 Sunny糖果 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Palindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 2 #include 3 #in... 阅读全文
posted @ 2016-01-25 02:14 Sunny糖果 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Among the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't ... 阅读全文
posted @ 2016-01-24 23:05 Sunny糖果 阅读(161) 评论(0) 推荐(0) 编辑
摘要: A square pattern of size N x N (1 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 freopen("transform.in","r",stdin)... 阅读全文
posted @ 2016-01-24 21:38 Sunny糖果 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Three farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in sec... 阅读全文
posted @ 2016-01-23 17:50 Sunny糖果 阅读(167) 评论(0) 推荐(0) 编辑