Created
February 19, 2024 12:51
-
-
Save arifhosan/3e621a07eda4819dc77a35e20eb91c2c to your computer and use it in GitHub Desktop.
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 | |
from os import path | |
input = sys.stdin.readline | |
############ ---- Input Functions ---- ############ | |
# single integer | |
def inp(): | |
return(int(input())) | |
# array integers | |
def inlt(): | |
return(list(map(int,input().split()))) | |
# single string | |
def insr(): | |
s = input() | |
return(list(s[:len(s) - 1])) | |
# multiple integers | |
def invr(): | |
return(map(int,input().split())) | |
#################################################### | |
############ ---- Output Functions ---- ############ | |
def out(var): | |
sys.stdout.write(str(var)) | |
def outln(var): | |
sys.stdout.write(str(var) + "\n") | |
def outarr(var): | |
sys.stdout.write(' '.join(map(str, var)) + "\n") | |
def yes(): | |
sys.stdout.write("YES\n") | |
def no(): | |
sys.stdout.write("NO\n") | |
#################################################### | |
def solve(): | |
yes() | |
if(path.exists('input.txt')): | |
sys.stdin = open("input.txt","r") | |
sys.stdout = open("output.txt","w") | |
t = inp() | |
for _ in range(t): | |
solve() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment