A. String Task

原创 2018年04月17日 20:02:44
                                                                 A. String Task
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

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.

Input

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.

Output

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

Examples
Input
Copy
tour
Output
Copy
.t.r
Input
Copy
Codeforces
Output
Copy
.c.d.f.r.c.s
Input
Copy
aBAcAba
Output
Copy
.b.c.b

按题目意思将字符串里的A E I O U Y,或a e i o u y去掉并将所有大写转换为小写并在每个字符前加上  .  输出,

解题思路:先将大写转换为小写,然后判断每个字符是否是上述字符中的其中一个,如果不是则存入另外一个数组中,

然后以 .%c输出剩下的字符即可。

代码:




CodeForces 118 A.String Task(水~)

Description给出一个只有大小写字母的字符串,做如下处理:1.删除所有元音字母(A,O,Y,E,U,I)2.在每个辅音字母前加一个.3.把所有大写辅音字母变成小写Input一个长度不超过100...
  • V5ZSQ
  • V5ZSQ
  • 2017-09-01 22:58:48
  • 176

【简单过滤】#89 A. String Task

A. String Task time limit per test 2 seconds memory limit per test 256 megabytes in...
  • okcd00
  • okcd00
  • 2015-02-22 16:23:17
  • 565

codeforces 118A String Task

A. String Task time limit per test 2 seconds memory limit per test 256 megabytes input s...
  • Wzywdj
  • Wzywdj
  • 2017-11-25 14:20:36
  • 86

CodeForces 23A You're Given a String...(字符串处理)

Description You’re given a string of lower-case Latin letters. Your task is to find the length of i...
  • qq_15714857
  • qq_15714857
  • 2015-03-01 22:55:32
  • 594

【CodeForces】A. String Task

Problem hereProblemPetya started to attend programming lessons. On the first lesson his task was to ...
  • LeongHouHeng
  • LeongHouHeng
  • 2016-02-27 22:32:22
  • 711

A. You\'re Given a String...

A. You're Given a String...time limit per test2 secondsmemory limit per test256 megabytesinputstanda...
  • u013077144
  • u013077144
  • 2016-04-21 19:02:44
  • 274

Appleman and Easy Task

Description Toastman came up with a very easy task. He gives it to Appleman, but Appleman doesn't...
  • geekdoe
  • geekdoe
  • 2016-01-06 15:01:17
  • 143

Codeforces Round #263 (div2) A. Appleman and Easy Task

A. Appleman and Easy Task time limit per test 1 second memory limit per test 256 megabyt...
  • caduca
  • caduca
  • 2014-08-27 08:59:06
  • 2280

OCP-V13-040

QUESTION 40 Evaluate the following code: SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_st...
  • xuejiayue1105
  • xuejiayue1105
  • 2015-09-28 21:30:05
  • 866

Async Task的使用详解

【转】http://blog.csdn.net/liuhe688/article/details/6532519在Android中实现异步任务机制有两种方式,Handler和AsyncTask。Han...
  • god2030
  • god2030
  • 2016-04-13 09:41:50
  • 1313
收藏助手
不良信息举报
您举报文章:A. String Task
举报原因:
原因补充:

(最多只允许输入30个字)