Created
November 5, 2018 10:03
-
-
Save omartrigui/e7ee26823988aafe93542e4254972493 to your computer and use it in GitHub Desktop.
CP python solution template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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