摘要: 早晨有点迷糊,读错题WA了一次,然后又CE了一次..... 给出一个字符串 均为小写字母 且 长度 = 3 时 f[len][i] = f[len-1][i+1] +……+f[len-1][26-len+1]; 统计时先统计比给出字符串长度短的情况,然后统计与其长度相等的情况。 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define LL unsigned long long 8 9 using namespace std;10 11 char num[12];12 LL ans[12]... 阅读全文
posted @ 2013-09-08 09:24 好小孩 阅读(172) 评论(0) 推荐(0) 编辑