问题1216--简单编码

1216: 简单编码

时间限制: 1 Sec  内存限制: 128 MB
提交: 733  解决: 228
[状态] [讨论版] [提交] [命题人:]
题目描述

最近Kingly对编码很感兴趣,于是从网上找了一些编码原则来对字符串做实验。由于Kingly一直很忙,所以希望你这位编程高手来替他解决这个问题。下面是编码原则:(1) 如果访问到字符A,W,F就转化成I;(2) 如果访问到字符C,M,S就分别转化成L,o,v;(3) 如果访问到字符D,P,G,B就转化成e;(4) 如果访问到字符L,X就分别转化成Y,u;(5) 其他字符均保持不变。(6) 遇到END就结束!

输入

输出

样例输入 Copy
I HIGH-SPEED RAIL LINK BETWEEN EEIJING AND VHANGHAI AND A MAGLEV LINE BETWEEN VHANGHAI AND NEIGHBOURING.
HANGZHOU HAVE BEEN APPROVED BY THE VTATE LOUNCIL, LHINA'S CABINET.
THE EEIJING-VHANGHAI RAILWAY WILL "USE HIGH SPEED WHEEL TRACK TECHNOLOGY,"
THE NATIONAL EEVELOPMENT AND REFORM LOMMISSION (NERL) THE COUNTRY'S TOP PLANNER SAID ON ITS WEBSITE YESTERDAY.
END
样例输出 Copy
I HIeH-veEEe RIIY YINK eETIEEN EEIJINe INe VHINeHII INe I oIeYEV YINE eETIEEN VHINeHII INe NEIeHeOURINe.
HINeZHOU HIVE eEEN IeeROVEe eY THE VTITE YOUNLIY, YHINI'v LIeINET.
THE EEIJINe-VHINeHII RIIYIIY IIYY "UvE HIeH veEEe IHEEY TRILK TELHNOYOeY,"
THE NITIONIY EEVEYOeoENT INe REIORo YOooIvvION (NERY) THE LOUNTRY'v TOe eYINNER vIIe ON ITv IEevITE YEvTEReIY.
来源/分类