Skip to content

Instantly share code, notes, and snippets.

@omas-public
Last active August 3, 2026 02:18
Show Gist options
  • Select an option

  • Save omas-public/91a8a99cd2a8f6eb95e86bdbdeee8252 to your computer and use it in GitHub Desktop.

Select an option

Save omas-public/91a8a99cd2a8f6eb95e86bdbdeee8252 to your computer and use it in GitHub Desktop.
def initialize():
_, Q = [int(input()) for _ in range(2)]
return Q
def run(Q):
AM, BM, ROCK = [set() for _ in range(3)]
# PASS
def check(AM, BM):
if len(AM) > len(BM):
return "A"
if len(AM) < len(BM):
return "B"
return "Draw"
def display(result):
if __name__ == "__main__":
Q = initialize()
AM, BM, ROCK = run(Q)
result = check(AM, BM)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment