摘要:
#include <iostream> #include <cstdio> #include <string.h> #include <algorithm> using namespace std; const int maxn=1005; int m,n,k; int seq[maxn]; int 阅读全文
posted @ 2017-03-22 18:22
辰曦~文若
阅读(218)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstdio> #include <string.h> #include <algorithm> using namespace std; /* 水题,注意字符范围是整个ASCII编码即可。 */ const int maxn=130; i 阅读全文
posted @ 2017-03-22 18:20
辰曦~文若
阅读(145)
评论(0)
推荐(0)
摘要:
n位数,总共有0~10^n-1共计10^n个数那么所有数出现的总次数变为n*(10^n)个数1出现的次数便是十分之一,所以n位数中,1出现的次数为n*10^(n-1)知道这一个后,接下来就方便求了。 举个例子就方便理解了 3125 从头到尾for一遍 3:那么便有三组1000以内的:0~999,10 阅读全文
posted @ 2017-03-22 18:17
辰曦~文若
阅读(684)
评论(0)
推荐(0)

浙公网安备 33010602011771号