CF118A.String Task

入门

通过率:0%

时间限制:2.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and lowercase Latin letters, it:

  • deletes all the vowels,
  • inserts a character "." before each consonant,
  • replaces all uppercase consonants with corresponding lowercase ones.

Vowels are letters "A", "O", "Y", "E", "U", "I", and the rest are consonants. The program's input is exactly one string, it should return the output as a single string, resulting after the program's processing the initial string.

Help Petya cope with this easy task.

佩佳开始参加编程课程。在第一节课上,他的任务是编写一个简单的程序。该程序需对给定的字符串(仅由大写和小写的拉丁字母组成)执行以下操作:

  • 删除所有元音字母;
  • 在每个辅音字母前插入一个字符 .;
  • 将所有大写的辅音字母替换为对应的小写字母。

元音字母为 "A"、"O"、"Y"、"E"、"U"、"I",其余字母均为辅音字母。程序的输入恰好为一个字符串,应输出经上述处理后得到的单个字符串。

请帮助佩佳完成这个简单任务。

输入格式

The first line represents input string of Petya's program. This string only consists of uppercase and lowercase Latin letters and its length is from 1 to 100, inclusive.

第一行表示佩佳程序的输入字符串。该字符串仅由大写和小写拉丁字母组成,长度为 1 到 100(含)。

输出格式

Print the resulting string. It is guaranteed that this string is not empty.

输出结果字符串。保证该字符串非空。

输入输出样例

  • 输入#1

    tour

    输出#1

    .t.r
  • 输入#2

    Codeforces

    输出#2

    .c.d.f.r.c.s
  • 输入#3

    aBAcAba

    输出#3

    .b.c.b

输入解题思路,AI测评打分。不知道怎么写?

首页