Created
September 26, 2023 18:51
-
-
Save anxkhn/b5fe430064e38b3fa4e5254e658261dc to your computer and use it in GitHub Desktop.
My basic python template for fast IO, source: https://stackoverflow.com/questions/22623528/sys-stdin-readline-and-input-which-one-is-faster-when-reading-lines-of-inpu
This file contains hidden or 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 sys | |
input = sys.stdin.readline | |
# Function to read an int | |
def read_int(): | |
return int(input().strip()) | |
# Function to read a list of integers | |
def read_int_list(): | |
return list(map(int, input().split())) | |
# Function tod read a single string | |
def read_string(): | |
return input().strip() | |
# Function to read a list of strings | |
def read_string_list(): | |
return input().split() | |
def solve(): | |
pass | |
return 0 | |
def main(): | |
t = read_int() | |
while t > 0: | |
print(solve()) | |
t-=1 | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment