假设现在有一段长度为 n 的密码字符,由0 ~ 9 和 小写字母 a ~ f 组成 。输入一段密码,求计算穷举该密码所需的次数。( a ~ f 请将其转化为 10 ~ 15 )如:输入 : 00 输出:1输入 : 01 输出 :2输入: 1a 输出 :27#include #include using namespace std;long countall(string &s);long count(string &s,int m,int n);int main(){ string s; cin >> s; cout = '0' && Read More
posted @ 2013-12-30 02:05 迷路君的博客 Views(763) Comments(0) Diggs(0)