+ 1
Code coach
I'm unable to see test cases other than 1 and 2 and even if code runs good it fails sometimes.
4 Respostas
+ 1
It is the inbuilt setting in SoloLearn so that you can not see the cases and tell anyone who will use it to provide the output
+ 1
Naveen K R can't really say what's wrong with yours.
Use this
https://code.sololearn.com/cdKOIUGu6SKQ/?ref=app
0
I don't know why is this code not passing the challenge named security
floor = input()
if not ("T" in floor) :
print("quiet")
exit()
T = floor.index("T")
M = floor.index("quot;)
floor = list(floor)
if (M > T) :
floor.reverse()
floor ="".join(floor)
floorspl = floor.split("quot;)
floorth = floorspl[1]
tpos = floorth.index("T")
if ("G" in floorth) :
gpos = floorth.index("G")
if (gpos < tpos) :
print("quiet")
elif (gpos > tops) :
print("ALARM")
else :
print("ALARM")
0
Oh thanks