-
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
-
Access数据库下实现的系统,功能很强大,适合初学者学习~
Access数据库下实现的系统,功能很强大,适合初学者学习~-Implemented under the Access database system, function is very powerful, suitable for beginners to learn ~
- 2022-07-01 17:57:49下载
- 积分:1
-
重写了微软提供SQLHelper(共用的数据库调用接口) 1把SqlHelper的connectionString做成一个全局量,统一设置数据库连接字符串 2增...
重写了微软提供SQLHelper(共用的数据库调用接口) 1把SqlHelper的connectionString做成一个全局量,统一设置数据库连接字符串 2增加了返回特定表名的DataSet的各接口。 可在项目的config文件设置数据库连接字符串 private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"] 当然可以把数据库连接方法修改后直接用。-rewritten Microsoft SQLHelper (shared database Call Interface) a SqlHelper the connectionString caused an overall volume, uniform database connections increased by two strings to the specific name of the table in the DataSet interface. In the config files set database connection string private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings [ "ConnectionString"] lt; !-- Application specific settings-- gt; Lt; AppSettingsgt; Lt; Add key
- 2022-06-02 10:24:49下载
- 积分:1
-
This is an environment in C List prepared by the operation, main set of referenc...
这是一个在C环境下编写的链表操作,主要实现集合的交,并,补操作-This is an environment in C List prepared by the operation, main set of reference and that the fill operation
- 2022-12-24 17:05:04下载
- 积分:1
-
ABCDEFGHIJK
;;;;![endif]-->;;;![endif]-->;;;![endif]-->;;;![endif]-->;;-->;
- 2023-07-22 23:50:13下载
- 积分:1
-
严蔚敏编写的《数据结构》第9章的答案,全部为源码
严蔚敏编写的《数据结构》第9章的答案,全部为源码-the answers of chapter 9 of a book called ‘Data Structures’ writen by Yan Wei Min
- 2022-04-10 20:24:10下载
- 积分:1
-
FORTRAN常用算法集。
fortran常用算法集。-FORTRAN commonly used algorithm sets.
- 2022-05-20 06:32:47下载
- 积分:1
-
实现Haffman算法,有输入的接口,需输入字符及其权重,能自动生成Haffman编码...
实现Haffman算法,有输入的接口,需输入字符及其权重,能自动生成Haffman编码-achieve Haffman algorithm, the input interface, the need to import characters and weights, can automatically generate code Haffman
- 2022-06-20 08:47:40下载
- 积分:1
-
这是个操作系统的时间片转换代码 希望可以对大家有所帮补 ^_^...
这是个操作系统的时间片转换代码 希望可以对大家有所帮补 ^_^-this is the operating system for time-code conversion hope you all have a right to help make ^ _ ^
- 2022-11-24 14:50:03下载
- 积分:1
-
CShap代码
冒泡排序,选择排序,插入排序,希尔排序
算法
CShap代码
冒泡排序,选择排序,插入排序,希尔排序
算法-Code CShap Bubble Sort, Selection Sort, Insertion Sort, Hill sorting algorithm
- 2022-03-23 02:49:27下载
- 积分:1