泡沫

博客园 首页 联系 订阅 管理

2013年5月18日

摘要: 题目链接: http://www.codeforces.com/problemset/problem/285/DPermutation p is an ordered set of integers p1, p2, ..., pn, consisting of n distinct positive integers, each of them doesn't exceed n. We'll denote the i-th element of permutation p as pi. We'll call number n the size or the length 阅读全文
posted @ 2013-05-18 16:05 木-天空 阅读(692) 评论(0) 推荐(0) 编辑

摘要: 题目链接: www.codeforces.com/problemset/problem/300/CVitaly is a very weird man. He's got two favorite digits a and b. Vitaly calls a positive integer good, if the decimal representation of this integer only contains digits a and b. Vitaly calls a good number excellent, if the sum of its digits is a 阅读全文
posted @ 2013-05-18 11:29 木-天空 阅读(400) 评论(0) 推荐(0) 编辑