-
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
-
vb下数据库的读取范例
vb下数据库的读取范例-vb read Database examples
- 2022-01-26 00:45:38下载
- 积分:1
-
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少...
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的n和k个加油站位置,编程计算最少加油次数。并证明算法能产生一个最优解-Fill up the car after driving an n km. There are a number of gas stations journey. Design an efficient algorithm that at which stations should stop to refuel along the way so that the least number of refueling. For a given n and k-station location, the calculation program for at least the number of refueling. And to prove that the algorithm can produce an optimal solution
- 2023-08-07 06:10:03下载
- 积分:1
-
从库中调用图片(10KB) 从库中调用图片(10KB)
从库中调用图片(10KB) 从库中调用图片(10KB)-Picture from the library call (10KB) picture from the library call (10KB)
- 2022-05-16 15:46:30下载
- 积分:1
-
对Oracle OCI的封装
对Oracle OCI的封装- To Oracle OCI seal
- 2023-03-23 13:45:03下载
- 积分:1
-
成绩管理系统,用VC实现对ACCESS数据库的操作,实现基本的成绩管理功能!...
成绩管理系统,用VC实现对ACCESS数据库的操作,实现基本的成绩管理功能!-performance management system, with VC right ACCESS database operation, to achieve the basic performance management functionality!
- 2022-07-09 01:43:57下载
- 积分:1
-
,"智能大厦自动报警系统",是从赛奎春所主编的"C++信息系统开发实例精选"CD中拷贝出来的,对mscomm 控件进制转换串口通信等内容进行了详细介绍。...
,"智能大厦自动报警系统",是从赛奎春所主编的"C++信息系统开发实例精选"CD中拷贝出来的,对mscomm 控件进制转换串口通信等内容进行了详细介绍。
- 2022-04-29 08:33:18下载
- 积分:1
-
数据结构
数据结构-递归实验-data structure- recursive experiment
- 2022-02-06 03:01:04下载
- 积分:1
-
a building, display and complete binary tree judgment of small procedures.
一个构建、显示和判断完全二叉树的小程序。-a building, display and complete binary tree judgment of small procedures.
- 2022-05-31 22:25:10下载
- 积分:1
-
Earthquake magnitudo registered in San Francisco, during last 2 years plus white...
Earthquake magnitudo registered in San Francisco, during last 2 years plus white noise data
- 2022-01-25 19:03:55下载
- 积分:1