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
def main(): | |
import sys | |
def get_input(): | |
"""Get input either from stdin or allow manual input""" | |
if sys.stdin.isatty(): # If running interactively | |
try: | |
n = int(input("Enter number of test cases: ")) | |
if n <= 0: | |
print("Number of test cases must be positive") |