a808: 食字程序
Tags :
Accepted rate : 117人/126人 ( 93% ) [非即時]
評分方式:
Strictly

最近更新 : 2022-09-06 08:42

Content
寫一個程序,把句子裡每個字的最後吃掉!第一個字吃掉一個字母,第二個字吃掉兩個字母,如此類推。啊,但是這個程序不會欺負弱小,如果第n個字只有<=n個字母,那麼程序就會無視它,吃下第n+1個字的n個字母。
Input
一行沒有標點符號的英文句子
Output
一行英文句子,每個字缺少一部分
Sample Input #1
hellow worlddd
Sample Output #1
hello world
Sample Input #2
an apple a day keeps the doctor away
Sample Output #2
a app a day ke the do away
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (33%): 1.0s , <1K
不公開 測資點#1 (33%): 1.0s , <1K
不公開 測資點#2 (34%): 1.0s , <1K
Hint :
Tags:
出處:
[管理者:
issin@g.puic... (冼一心老師)
]


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