fork(1) download
  1. t = input().lower()
  2. mx = cur = 0
  3. for c in t: cur = cur+1 if c=="k" else 0; mx = max(mx,cur)
  4. print(mx)
Success #stdin #stdout 0.1s 14172KB
stdin
aalkkaaylkkkkkkkkkasddkkkrftgkkkkk
stdout
9