Seven Wonders
This commit is contained in:
1 parent
2d740cf8d3
commit
1182218885
1 file changed
+7
@@ -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))
|
||||||
Reference in new issue
Block a user