Skip to content

Instantly share code, notes, and snippets.

@Svastikkka
Created August 7, 2020 08:56
Show Gist options
  • Save Svastikkka/3e96fefa065a4366cf3d0a8e60952bcc to your computer and use it in GitHub Desktop.
Save Svastikkka/3e96fefa065a4366cf3d0a8e60952bcc to your computer and use it in GitHub Desktop.
n=int(input())
n0=int(input())
s0 = input()
a0=s0.count("G")
b0=s0.count("C")
arr=[]
for i in range(n):
n1=int(input())
s1=input()
a1=s1.count("G")
b1=s1.count("C")
arr.append(((a1*b0)+(b1*a0)))
print(arr.index(max(arr))+1)
@Svastikkka
Copy link
Author

Finding vaccines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment