2015年9月10日
摘要: Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-... 阅读全文
posted @ 2015-09-10 00:40 ArcherCheng 阅读(178) 评论(0) 推荐(0) 编辑
  2015年9月9日
摘要: Ski Course DesignFarmer John has N hills on his farm (1 #include #include using namespace std;int main(){ freopen("skidesign.in","r",stdin); fre... 阅读全文
posted @ 2015-09-09 01:05 ArcherCheng 阅读(223) 评论(0) 推荐(0) 编辑
  2015年9月8日
摘要: WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 B . Bessie will tra... 阅读全文
posted @ 2015-09-08 01:04 ArcherCheng 阅读(185) 评论(0) 推荐(0) 编辑
  2015年9月5日
摘要: Combination LockFarmer John's cows keep escaping from his farm and causing mischief. To try and prevent them from leaving, he purchases a fancy combin... 阅读全文
posted @ 2015-09-05 19:42 ArcherCheng 阅读(427) 评论(0) 推荐(0) 编辑
  2015年9月4日
摘要: Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into... 阅读全文
posted @ 2015-09-04 16:18 ArcherCheng 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Barn RepairIt 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 o... 阅读全文
posted @ 2015-09-04 00:43 ArcherCheng 阅读(144) 评论(0) 推荐(0) 编辑
  2015年9月3日
摘要: Mixing MilkThe Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocer... 阅读全文
posted @ 2015-09-03 21:24 ArcherCheng 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is c... 阅读全文
posted @ 2015-09-03 14:47 ArcherCheng 阅读(110) 评论(0) 推荐(0) 编辑
  2015年9月1日
摘要: Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a numbe... 阅读全文
posted @ 2015-09-01 21:22 ArcherCheng 阅读(228) 评论(0) 推荐(0) 编辑
  2015年8月29日
摘要: Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The ... 阅读全文
posted @ 2015-08-29 14:40 ArcherCheng 阅读(158) 评论(0) 推荐(0) 编辑