-
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
-
有关于二差树的遍历,对于初学者有很大的帮助,
有关于二差树的遍历,对于初学者有很大的帮助,-Worse on the second tree traversal, for beginners there are a lot of help,
- 2022-12-14 17:30:03下载
- 积分:1
-
最简单的Delphi班级管理系统
最简单的Delphi班级管理系统-most simple Delphi class management system
- 2022-11-10 06:45:04下载
- 积分:1
-
图书管理系统
这个源代码是一个图书管理系统,可以实现的功能有实现图书的增加删除。读者的新增添加删除。以及新增图书,借出图书图书超期管理。
- 2022-01-30 16:25:57下载
- 积分:1
-
vc源代码
11.1编程测试顺序容器矢量(vector)的主要功能和使用方法...
vc源代码
11.1编程测试顺序容器矢量(vector)的主要功能和使用方法
-11.1 programming source code vc test vector sequence containers (vector) of the main functions and use
- 2023-08-13 15:15:03下载
- 积分:1
-
这是用链表实现的栈数据结构。链表数据结构的最大优点是不受元素个数的限制,除非内存耗尽。...
这是用链表实现的栈数据结构。链表数据结构的最大优点是不受元素个数的限制,除非内存耗尽。-This is the stack implementation with linked list data structure. List data structure is not subject to the greatest advantage of the restricted number of elements, unless the memory run out.
- 2022-09-23 11:35:03下载
- 积分:1
-
本书是作者编程经验的结晶,由发表在杂志上的专栏文章构成,每一章内容相对独立,但都是编程过程中的有机组成部分。本书内容包括问题定义、算法、数据结构、程序验证与测试...
本书是作者编程经验的结晶,由发表在杂志上的专栏文章构成,每一章内容相对独立,但都是编程过程中的有机组成部分。本书内容包括问题定义、算法、数据结构、程序验证与测试、程序优化与效率问题,以及这些技巧在排序、查找和字符串处理等方面的几个实际应用。本书每章末尾都附带有相关内容的问题,附录中给出了一些问题的提示和解答。仔细思考问题或与同事进行讨论,可以巩固所学知识,将作者的经验应用到自己的编程实践中。-This book is the author of the crystallization of programming experience, published in the journal by the column consists of the contents of each chapter is relatively independent, but they are in the process of programming an integral part. The book includes problem definition, algorithms, data structures, program verification and testing, process optimization and efficiency issues, as well as these skills in sorting, string search and deal with several aspects of practical application. The book comes at the end of each chapter has relevant content issues, the appendix gives some tips and answers to the problem. Think carefully about questions or discussion with colleagues, you can consolidate the knowledge acquired will be applied to the author
- 2022-02-04 06:11:35下载
- 积分:1
-
贝尔曼
Bellman-Ford算法 是最短路径算法的一种-Bellman-Ford algorithm is the shortest path algorithm of a
- 2022-03-01 10:39:59下载
- 积分:1
-
Casually doing! Shortage of places which have requested the U.S. to help me corr...
随便做做!有哪不足的地方请大家帮我改正!谢谢了啊!-Casually doing! Shortage of places which have requested the U.S. to help me correct! Thank you, ah!
- 2022-02-03 14:06:07下载
- 积分:1
-
C, C language data structures and algorithms important procedure is all.
C、C++语言实现的数据结构重要算法和程序
比较全。-C, C language data structures and algorithms important procedure is all.
- 2022-02-04 09:44:48下载
- 积分:1