Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- # swapper.py
- #
- import sys
- print "A"
- sys.stdout.flush()
- chooseA = True
- while(True):
- line = sys.stdin.readline()
- chooseA = not chooseA
- print "A" if chooseA else "B"
- sys.stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement