HDU 找单词
摘要:
就是给你26个字母 A代表1 。。。。Z代表26 输入每个字母的个数 求少于50总和的单词数目注意 单词字母不分顺序母函数就可以解决啦 母函数算出来 系数刚好是所有可能的方案数 所以只要把前面 50 个加起来就行了#include<iostream>#include<cstring>#include<stdio.h>#include<stdlib.h>using namespace std;int len[27];int c1[51];int c2[51];int main(){ int n; freopen("t.txt", 阅读全文
posted @ 2011-10-18 20:26 Mr Zz 阅读(186) 评论(0) 推荐(0)
浙公网安备 33010602011771号