当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

7164:Cyber Language

题目描述
You may have ever seen the following words written in cyber language: ''$\texttt{KK}$'', ''$\texttt{DDW}$'', ''$\texttt{SMWY}$'', which means ''$\texttt{kan kan}$'', ''$\texttt{dai dai wo}$'', ''$\texttt{shen me wan yi}$'', respectively.

To translate a Chinese sentence into cyber language, you need to find the first letter of each Chinese character, and write it in upper-case.

You will be given several Chinese sentences, please translate them into the cyber language described above.
输入解释
The first line contains a single integer $T$ ($1 \leq T \leq 10$), the number of test cases. For each test case:

The only line contains several Chinese characters written in lower-case, separated by exactly one space. It is guaranteed that the length of each line is at least $1$ and at most $50$.
输出解释
For each test case, output a single line containing a string, denoting the corresponding word written in the cyber language.
输入样例
3
kan kan
dai dai wo
shen me wan yi
输出样例
KK
DDW
SMWY

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-7164

最后修改于 2022-09-15T06:17:07+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 524288/524288K(Java/Others)