Seven Wonders

This commit is contained in:
2023-07-16 21:23:41 +02:00
parent 2d740cf8d3
commit 1182218885

7
sevenwonders.py Normal file
View File

@@ -0,0 +1,7 @@
s = input().strip()
t = s.count("T")
c = s.count("C")
g = s.count("G")
print(t**2 + c**2 + g**2 + (min((t, c, g)) * 7))