Practice 4

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1)

t=int(input())
for i in range(t):
x1,x2,y1,y2,z1,z2=[int(x1) for x1 in input().split()]
if x1<=x2 and y1<=y2 and z1>=z2:
print("YES")
else:
print("NO")
2)
T = int(input())
for i in range(T):
n = input()
if (n =="B" or n == "b"):
print("BattleShip")
elif (n == "C" or n == "c"):
print("Cruiser")
elif (n == "D" or n == "d"):
print("Destroyer")
else:
print("Frigate")
3)
T = int(input())
while (T > 0):
a, b = map(int, input().split())

if (a == 0):
print(“Liquid”)
elif (b == 0):
print(“Solid”)
else:
print(“Solution”)

T=T–1
4)
T=int(input())
for i in range(T):
a,b=[int(a) for a in input().split()]
z=a+b
if(z<3):
print(1)
if(z>=3 and z<=10):
print(2)
if(z>=11 and z<=60):
print(3)
if(z>60):
print(4)
5)
C=input()
if(C=="A" or C=="E" or C=="I" or C=="O" or C=="U"):
print("Vowel")
else:
print("Consonant")

You might also like