Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Anyone solved security code coach?
I tried but it is not working.
4 Respostas
+ 3
Yeah...I solved in python
def gIdx(n):
try:
G = n.index('G')
except:
G = -1
return G
n = input() #input().replace('x','')
S = n.index("quot;)
T = n.index("T")
if S < T:
n = n[S:T+1]
else:
n = n[T:S+1]
if gIdx(n)>=0:
print("quiet")
else:
print("ALARM")
+ 1
It was a mess. I made a mistake which I realised.
+ 1
My example in python
string=input().replace("x","")
l=['T#x27;,'$T']
if (l[0] in string)|(l[1] in string):
print('ALARM')
else:
print("quiet")