算法思想
enthusiastic513
这个作者很懒,什么都没留下…
展开
-
计算任意两个数之间1出现的次数的思维过程
1、我刚开始没有什么思路,仅仅是想到了将一个数字拆开成单个的数字,然后求一出现的次数,结果发现很难实现 2、没有思路,只能使用穷举法 穷举法c语言代码: #include using namespace std; const int N=1; int main() { int a,b; while (cin>>a>>b, a||b) { int cnt=0; i原创 2012-03-11 10:04:23 · 987 阅读 · 1 评论 -
南阳理工题目 我排第几
http://acm.nyist.net/JudgeOnline/problem.php?pid=139 实质是康托展开。 参见博客 http://acm.nyist.net/JudgeOnline/problem.php?pid=139原创 2015-09-28 21:34:19 · 297 阅读 · 0 评论