多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

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

118A - String Task

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

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 久久久久久久久a免费 | 精品无码久久久久国产 | 成人精品一区二区激情 | 韩国精品一区二区 | 最近中文字幕免费大全8高清 | 爱爱一区| 最近中文字幕国语免费完整 | 国产欧美日韩亚洲精品区2345 | 最近免费中文字幕视频高清在线看 | 欧美高清正版在线 | 免费在线观看黄色网址 | 国产午夜精品不卡视频 | 久草在线观看首页 | 国产在线欧美日韩精品一区二区 | 在线免费网站 | 欧美三级在线观看视频 | 欧美18一19sex性瑜伽hd | 欧美亚洲h在线一区二区 | 亚洲女人天堂网 | 日本在线 | 中文 | 国产一区二区免费不卡在线播放 | 色婷婷久久综合中文久久蜜桃 | 久久精品国产视频在热 | 色综合久久久久久久久久久 | tom影院亚洲国产日本一区 | 欧美人善交vides0 | 国产成人亚洲精品久久 | 男人看的网址 | 欧美巨尻 | 欧美精品一区二区三区视频 | 亚洲国产日韩欧美高清片a 亚洲国产日韩欧美一区二区三区 | 国产资源视频 | 啦啦啦啦高清视频免费观看 | 成人精品视频 | 亚洲精品国自产拍在线观看 | 成人做爰毛片免费视频 | 欧美国产精品不卡在线观看 | 国产高清视频 | 波多野结衣视频免费看 | 免费一级毛片一级毛片aa | 亚洲第一视频网站 |