b339: 同行文字
Tags :
Accepted rate : 168人/180人 ( 93% ) [非即時]
評分方式:
Tolerant

最近更新 : 2024-10-11 20:51

Content

原始的打字機是機械式的操作,為了不令機械桿碰,QWERTY鍵盤出現了,該鍵盤由克里斯多福夏爾斯(Christopher Latham Sholes)在19世紀發明並取得專利,我們找找有沒有英文字是在鍵盤同一行中(全小寫),如有把該字印出來。

鍵盤第一行為”qwertyuiop”

鍵盤第二行為”asdfghjkl”

鍵盤第三行為”zxcvbnm”

Input

輸入N個英文字,中間以逗號分隔

Output

輸出在鍵盤中同一行的英文字

Sample Input #1
hello,you,dad,mom
Sample Output #1
you, dad
Sample Input #2
ok,w,can,ccm
Sample Output #2
w, ccm
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (50%): 1.0s , <1K
不公開 測資點#1 (50%): 1.0s , <1K
Hint :

可使用join()指令把list列印出來

Tags:
出處:
[管理者:
wmche@g.puic... (CHEONG WUI MAN張...)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」