Skip to content

Instantly share code, notes, and snippets.

@omartrigui
Created November 5, 2018 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omartrigui/e7ee26823988aafe93542e4254972493 to your computer and use it in GitHub Desktop.
Save omartrigui/e7ee26823988aafe93542e4254972493 to your computer and use it in GitHub Desktop.
CP python solution template
import atexit
import io
import sys
_INPUT_LINES = sys.stdin.read().splitlines()
input = iter(_INPUT_LINES).__next__
_OUTPUT_BUFFER = io.StringIO()
sys.stdout = _OUTPUT_BUFFER
@atexit.register
def write():
sys.__stdout__.write(_OUTPUT_BUFFER.getvalue())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment