恒邪

2014年3月28日 #

[ACM] hdu 2082 找单词 (母函数)

摘要: Problem Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值#include using namespace std;int num[27];int c[60],temp[60];int main(){ int t;cin>>t; while(t--) { memset(c,0,sizeof(c)); memset(temp,0,sizeof(temp)); for(int i=1... 阅读全文

posted @ 2014-03-28 19:40 恒邪 阅读(129) 评论(0) 推荐(0) 编辑

导航