c657. 最長連續字母
Tags : 字串讀取練習
Accepted rate : 1117人/1324人 ( 84% ) [非即時]
評分方式:
Tolerant

最近更新 : 2024-06-30 14:04

Content

測資有若干行字串。

每個字串是由小寫字母組成。

請找出字串中最長連續的字母,並輸出其長度。

如果有長度相同的連續字母,請輸出最先出現的。

Input
Output
Sample Input #1
abbcc
cciiiiiiiixxxxxxxxxxxxguuuuuuufugpccccccc
Sample Output #1
b 2
x 12
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (33%): 1.0s , <1M
公開 測資點#1 (33%): 1.0s , <1M
公開 測資點#2 (34%): 1.0s , <1M
Hint :
Tags:
字串讀取練習
出處:
it's david [管理者: asnewchien@g ... (david) ]

Status Forum 排行

ID User Problem Subject Hit Post Date
26750 406490150@gm ... (我是朱朱) c657
1367 2021-08-22 22:19
44218 benson556687 ... (我從來沒有覺得寫程式開心過) c657
這題硬解會過喔
163 2024-11-14 08:47
39505 yp11251120@y ... (808-43杜波波) c657
c++ ans
408 2024-03-01 10:03
28784 godbottle98@ ... (z3 0) c657
__注意
901 2022-01-03 11:31
25036 asnewchien@g ... (david) c657
python 解題影片
1219 2021-04-16 11:38