Skip to content

Instantly share code, notes, and snippets.

@ArifHosan
Created February 19, 2024 12:51
Show Gist options
  • Save ArifHosan/3e621a07eda4819dc77a35e20eb91c2c to your computer and use it in GitHub Desktop.
Save ArifHosan/3e621a07eda4819dc77a35e20eb91c2c to your computer and use it in GitHub Desktop.
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