poj 1850 Code 递推
来源:互联网 发布:2017中超守门员数据 编辑:程序博客网 时间:2024/05/29 19:13
题目意思简单明了,求由小写字母组成的数列的顺序号
a - 1
b - 2
...
z - 26
ab - 27
...
az - 51
bc - 52
b - 2
...
z - 26
ab - 27
...
az - 51
bc - 52
思路: 非常直接的做法 从最高位开始,求出把该位减小后能得到的数列数,最后再加上位数比他小的那些数列数目。
#include
#include
#include
using namespace std;
long long ans;
char a[101];
long long work(int a,int b)
{
}
int main()
{
}
- poj 1850 Code 递推
- poj 组合数 1850 Code
- poj 2015 Permutation Code
- poj 1521_huffmanb code
- poj 2488
- HDU 3123(ZZULI 1605) GCC(递推) …
- POJ 2485 Highways
- POJ 3299
- poj 1905
- Program exited with code ****
- Program exited with code **** 2
- LDAP: error code …
- SMS Error code: +CMS
- POJ 2247 Humble Numbers
- POJ 1753 Flip Game
- POJ 1182 食物链
- POJ 3185 The Water Bowls
- POj 2379 ACM Rank Table
- poj 3277 City Horizon 线段树
- PHP语言实现验证码
- 一点点感想
- poj 3225 Help with Intervals
- poj 1925 Spiderman
- poj 1850 Code 递推
- poj 1952 BUY LOW, BUY LOWER dp
- poj 2190 isbn 模拟
- poj 3663 Costume Party 二分
- poj 3661 Running dp(动态规划)
- poj 3659 Cell Phone Network 贪心
- poj 2409 Let it Bead
- poj 3662 Telephone Lines 图论
- poj 1944 模拟 枚举