摘要: Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the clus 阅读全文
posted @ 2017-11-12 20:51 Zireael 阅读(172) 评论(0) 推荐(0) 编辑
摘要: King Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, there are no roads in the kingdom now. Recent 阅读全文
posted @ 2017-11-12 17:34 Zireael 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Data mining huge data sets can be a painful and long lasting process if we are not aware of tiny patterns existing within those data sets. One reputab 阅读全文
posted @ 2017-11-12 13:39 Zireael 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Problem Description A permutation p1,p2,...,pn of 1,2,...,n is called a lucky permutation if and only if pi≡0(mod|pi−pi−2|) for i=3...n. Now you need 阅读全文
posted @ 2017-11-12 09:32 Zireael 阅读(754) 评论(0) 推荐(0) 编辑