-
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
-
实现最短路径算法。 实现最短路径算法。
实现最短路径算法。 实现最短路径算法。-Realize the shortest path algorithm. Realize the shortest path algorithm.
- 2023-08-02 00:25:03下载
- 积分:1
-
C数据结构常用算法程序集2,描述数据结构算法。
C数据结构常用算法程序集2,描述数据结构算法。-C data structures commonly used algorithm Set 2, describe data structure algorithms.
- 2022-01-28 14:48:30下载
- 积分:1
-
离散事件模拟程序,以及自定义数据类型的队列实现
离散事件模拟程序,以及自定义数据类型的队列实现-Discrete event simulation program, as well as custom data types of queues to achieve
- 2023-01-09 11:50:03下载
- 积分:1
-
该程序在于如何进行图片存取,怎样访问EXCEL表格.
该程序在于如何进行图片存取,怎样访问EXCEL表格.-the program is how to access pictures, how to visit Excel.
- 2022-01-28 06:15:56下载
- 积分:1
-
石头剪子布的游戏,六个文件组成适合初学者
石头剪子布的游戏,六个文件组成适合初学者-rock scissors cloth games, six files for beginners
- 2022-01-25 18:19:36下载
- 积分:1
-
Sqlite包装v.4.7为对(深版)
SQLite的包装库的源代码,4.7版本可与最新的PBWIN编译器中使用
- 2022-03-17 03:53:35下载
- 积分:1
-
DataGridViewAutoFilter
The Microsoft® Windows Forms DataGridView control in
Microsoft® Visual Studio® 2005 provides a grid experience similar to Microsoft®
Excel, but does not provide the column filtering drop-down lists that Excel
provides in its AutoFilter feature. However, the DataGridView can bind to data sources that provide
filtering, such as the ADO.NET DataView. This article describes how to build a custom DataGridView column header cell
that displays drop-down filter lists, by taking advantage of the filtering
capabilities of the data source and the new BindingSource component.
- 2023-02-14 23:25:04下载
- 积分:1
-
err
用C语言编写的谭号强课后习题的部分解答,较参考书上使用,简单,易于理解,非常适合初学者。-err
- 2022-06-21 13:22:14下载
- 积分:1
-
1、 字符串由随机产生的1~16位的字母组成,然后用插入排序、冒泡排序、堆排序、快速排序、归并排序对字符串进行排序。...
1、 字符串由随机产生的1~16位的字母组成,然后用插入排序、冒泡排序、堆排序、快速排序、归并排序对字符串进行排序。-1, the string randomly generated by the 1 ~ 16 of the letters, and then use Insertion Sort, Bubble Sort, Heap Sort, Quick sort, merge sort to sort on the string.
- 2022-03-07 11:41:28下载
- 积分:1