英语翻译
Problem Description
In order to make a new word,we will pick out m letters from all the upper case letters and lower case letters(from `a' to `Z').Therefore,that means you can pick some same letters.But here are two rules:
● as to all the neighbour letters,the absolute value of their ASCII code must be not greater than 32.
● there must be at least one pair of neighbour letters whose absolute value of ASCII code is exactly equal to 32.For example,considering the word in the form like "Xx" or "xX",the neighbour letters have an absolute value of ASCII code exactly equal to 32.
Now how many di erent words can we get?
人气:496 ℃ 时间:2020-01-18 02:24:22
解答
题目描述
为了产生一个新命令,我们要从所有大小写字母(a到z)中挑出m个字母.因此,这就是说你可以挑选相同的字母.但是这有两条规定:
关于毗邻的字母,他们的ASCII码的绝对值绝对不能大于32.
必须有一对相邻的字母他们的ASCII码绝对值刚好等于32.比如,就处于 "Xx" or "xX"形式的命令,相邻的字母的ASCII码绝对值就刚好等于32.
现在我们可以得到多少个不同的命令呢?
推荐
猜你喜欢
- 急求如何让电路上两个灯只亮一个
- 已知点A(-1,3),B(2,4),C在x轴上运动,求|AC|+|BC|的
- 春天来到了我们校园 作文
- 在一个棱长为3厘米的大正方体的顶部中央挖去一个棱长为1厘米的小立方体,求现在的表面积和体积.
- 同学们去划船,租8人的船或10人的船,都多出2人.划船的同学至少有多少人?
- 求函数f(x)=cos平方x+cos2x的最大值?(1+cos2x)/2+cos2x 然后怎么计算?
- 三角函数 (23 13:36:20)
- 直线y=-1/2x+3与y轴交于点Q,点Q与点P关于x轴对称,直线y=kx+b经过点(-2,5)和点P,求直线y=kx+b的解析式