HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Variant 17"

BLG-Zhanysh.TeshebaevDec.01.2025 at 10:00:46 PM
0def HowMuch(s):
if len(s) == 0:
return 0
first = s[0]
count = 0
for ch in s:
if ch == first:
count += 1
return count

while True:
s = input()
if s == "":
break
if HowMuch(s) >= 3:
print(s)


www.contester.ru