complete 25425.py 29766.py 29767.py 29768.py

This commit is contained in:
2025-03-12 18:03:49 +09:00
parent 8079a4dbb4
commit f09d28243f
4 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
if __name__ == "__main__":
S = input()
cnt = 0
now = 0
find = S.find("DKSH", now)
while find != -1:
cnt += 1
now = find + 4
find = S.find("DKSH", now)
print(cnt)