日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > php開源 > php教程 > 118A - String Task

118A - String Task

來源:程序員人生   發布時間:2014-12-12 09:00:15 閱讀次數:2840次
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.

Sample test(s)
input
tour
output
.t.r
input
Codeforces
output
.c.d.f.r.c.s
input
aBAcAba
output
.b.c.b
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); //int n=sc.nextInt(); String x=sc.nextLine().toLowerCase(); char[] ch = x.toCharArray(); char[] q=new char[300]; int qi=0; for(int i=0;i<x.length();i++) { if(ch[i]=='y'||ch[i]=='a'||ch[i]=='e'||ch[i]=='i'||ch[i]=='o'||ch[i]=='u') continue; else q[qi]='.';q[qi+1]=ch[i]; qi+=2; } if(q[0]!='.') System.out.print('.'); for(int i=0;i<qi;i++) System.out.print(q[i]); System.out.println(); } }

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 美女视频久久久 | 欧美日韩一区二区三区视频 | 久久99精品一区二区三区三区 | 中文一区在线 | 精品久久久久久久久久久 | 国产精品99久久久 | 国产精品18hdxxxⅹ在线 | 丰满少妇一级毛片不卡免费 | 91综合在线 | 91色网站 | 久久国产日韩 | 免费精品视频一区二区三区 | 国产精品video | 污视频免费看 | 久久精品91| 日韩免费久久 | 国产黄色av| 少妇精品久久久一区二区三区 | 国产白浆在线观看 | 日韩国产欧美一区二区 | 精品成人免费一区二区在线播放 | 久久国产精品99久久久久久老狼 | 国产尤物一区 | 国产精品久久久久久久久久久久久 | 成人在线视频一区 | 国产日产亚洲精品 | 精品国产视频在线观看 | 日韩在线视频观看 | 日韩久久一级 | 国产精品午夜在线 | 免费视频久久 | 日韩欧美精品一区二区三区 | 99在线视频免费观看 | 国产精品久久久久久久久久免费 | 亚洲精品www| 日日干夜夜爽 | 色婷婷激情网 | 免费黄色一级 | 最新黄网| 精品久久久久久一区二区里番 | 亚洲精品在 |