-
err
魔王语言解释
[问题描述]
有一个魔王总是使用自己的一种非常精练而又抽象的语言讲话,没有人能听得懂,但他的语言是可以逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的:
(1) α 转换为 β1β2…βm
(2) (θδ1δ2…δn) 转换为 θδnθδn-1… θδ1θ
在这两种形式重,从左到右均表示解释。试写一个魔王语言的解释兄,把他的话解释成人能听得懂的话。
[基本要求]
用下述两条具体规则和上述规则形式(2)实现。设大写字母表示魔王语言的词汇;小写字母表示人的语言词汇;希腊字母表示可以用大写字母或小写字母代换的变量。魔王语言可含人的词汇。
(1)B 转换为 tAdA
(2)A 转换为 sae
[测试数据]
B(exnxgz)B解释成tsaedsaeezegexenehetsaedsae
若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:“天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一直鹅地上一只鹅”。
t d s a e z g x n h
天 地 上 一只 鹅 追 赶 下 蛋 恨
-err
- 2022-04-09 12:10:23下载
- 积分:1
-
数组和Cookie的PHP代码
这是阵列的PHP代码。阵列中存储数据。它可以是输入数据和输出数据。同时它包括pages.Login页面使用cookie代码。
- 2023-03-05 21:00:04下载
- 积分:1
-
matlab 贝叶斯分类
分类器是对每一个输入模式赋予一个类别名称的软件或硬件装置,而贝叶斯分类器是各种分类器中分类错误概率最小或者在预先给定代价的情况下平均风险最小的分类器。它的设计方法是一种最基本的统计分类方法
- 2022-07-06 14:33:58下载
- 积分:1
-
怎样判断一个指针指向的对象是否已经被析构,很好的学习C++的资料...
怎样判断一个指针指向的对象是否已经被析构,很好的学习C++的资料-how to decide a pointer at whether the target has been Destructors, good learning C information
- 2022-01-27 12:05:23下载
- 积分:1
-
自适应噪声对消源程序,LMS算法自适应滤波器仿真
自适应噪声对消源程序,LMS算法自适应滤波器仿真-adaptive noise cancellation source, LMS adaptive filter algorithm simulation
- 2022-04-24 10:15:42下载
- 积分:1
-
minimum spanning tree algorithm is the prim map for the shortest path algorithm...
最小生成树的prim算法
是求图中的最短路径的一个重要算法
但是是O(n2)复杂度的一个算法-minimum spanning tree algorithm is the prim map for the shortest path algorithm of an important but is O (n2) of a complex algorithm
- 2023-06-14 21:55:07下载
- 积分:1
-
基于C、c++排序大全
//希尔排序void ShellSort(int r[], int n){ int i; int d; int j; for (d=n/2; d>=1; d=d/2) //以增量为d进行直接插入排序 { for (i=d+1; i0 &am
- 2022-03-05 10:56:55下载
- 积分:1
-
QT和FireBird的入门程序,FireBird是一个开源的轻量级数据库管理系统,可在Linux,Unix,MacOS,Windows,Solaris系统下运...
QT和FireBird的入门程序,FireBird是一个开源的轻量级数据库管理系统,可在Linux,Unix,MacOS,Windows,Solaris系统下运行。包括源文件和说明文档。-This article is the description of the first steps in setting QT, Visual Studio and FireBird. It may be useful for those, who just start working with database FireBird Embedded by means of QT provider. The article will be also helpful for the developers who just start working with QT.
- 2022-10-23 22:20:04下载
- 积分:1
-
Backward recursive method used to achieve the eight
使用回溯递归法实现的八皇后问题的算法源码-Backward recursive method used to achieve the eight-queen problem algorithm source code
- 2022-11-08 16:40:02下载
- 积分:1
-
vb用sql语句操作数据库
vb用sql语句操作数据库-vb used to operate the database sql statement
- 2022-04-27 17:53:14下载
- 积分:1