摘要: 遇到了就查了下:地址:http://www.cnblogs.com/BeyondAnyTime/archive/2012/05/18/2508189.html 求一个组合数Cnm的值,Cnm= n! /(n-m)!*m!化简的结果为 Cnm = (n*(n-1)*…*(n-m+1))/m! 这个直接 阅读全文
posted @ 2016-04-09 17:49 weeping 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/660/problem/C 题目: You are given an array a with n elements. Each element of a is either 0 or 1. Let's denote the leng 阅读全文
posted @ 2016-04-09 16:15 weeping 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/660/problem/B 题目: B. Seating On Bus time limit per test 1 second memory limit per test 256 megabytes input standard i 阅读全文
posted @ 2016-04-09 16:08 weeping 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/660/problem/A 题目: A. Co-prime Array time limit per test 1 second memory limit per test 256 megabytes input standard i 阅读全文
posted @ 2016-04-09 16:05 weeping 阅读(228) 评论(0) 推荐(0) 编辑