Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. s = input()
  2. ans = s.count('VK')
  3. for subs in s.split('VK'):
  4.     if subs != '' and subs != 'V' and subs != 'K' and subs != 'KV':
  5.         ans += 1
  6.         break
  7. print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement