英语翻译Problem DescriptionIn order to make a new word,we will p

英语翻译
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?
枫叶浩楠 1年前 已收到2个回答 举报

笑笑d 幼苗

共回答了22个问题采纳率:90.9% 举报

题目描述
为了产生一个新命令,我们要从所有大小写字母(a到z)中挑出m个字母.因此,这就是说你可以挑选相同的字母.但是这有两条规定:
关于毗邻的字母,他们的ASCII码的绝对值绝对不能大于32.
必须有一对相邻的字母他们的ASCII码绝对值刚好等于32.比如,就处于 "Xx" or "xX"形式的命令,相邻的字母的ASCII码绝对值就刚好等于32.
现在我们可以得到多少个不同的命令呢?

1年前

10

redboy0909 幼苗

共回答了272个问题 举报

我们用m个字母组成一个字符串,大小写皆可,也可以包括重复的字母,但是我们规定以下两条规则:
所有相邻的两个字母ascii值的差的绝对值不能超过32
至少有一组相邻的字母ascii值的差的绝对值正好是32
那么这m个字母一共可以组成多少种不同的字符串?...

1年前

2
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.015 s. - webmaster@yulucn.com