摘要: 直接暴力,不过加了点优化:1.如果你求出50的答案是126,那么50-126的答案都是126了;2.求10的时候,只用循环到有答案的那个(比如是50)就行了,不用到126了。View Code #include <stdio.h>#include <math.h>#include <string.h>int ans[1000305],ar[10],now;int judge(int a,int b,int c){ int i,num[10]={0}; while (a) { num[a%10]++; a/=10; } while (b)... 阅读全文
posted @ 2012-04-26 10:37 104_gogo 阅读(326) 评论(0) 推荐(0) 编辑