题意:每个数有对应的字母
2 : a, b, c
3 : d, e,
f
4 : g, h, i
5 : j, k,
l
6 : m, n, o
7 : p, q, r, s
8 : t, u,
v
9 : w, x, y, z
给出一数字和单词 问该数字能组成下列单词中的多少个?
#include <stdio.h>
using namespace std;
int a[1000000];
int le[126];
int main()
{
int T, n, m,
qt[5005];
char
s[10];
le['a'] =
le['b'] = le['c'] = 2;
le['d'] =
le['e'] = le['f'] = 3;
le['i'] =
le['h'] = le['g'] = 4;
le['j'] =
le['k'] = le['l'] = 5;
le['o'] =
le......
阅读全文