Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 501
2024-12-30
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
s = input() n = len(s) for i in range(n): if s[i] == 'W': ans = 4774 for j in range(n): if s[j] == 'C': ans = min(ans, abs(i - j)) print(ans, end=" ") print()