Lapindrome giving error even though i ran all the test cases

testcases=int(input())
while(testcases):
testcases=testcases-1
m=input()
a=len(m)/2
if a%2==0:
b=m[0:int(a)]
c=m[int(a):len(m)]
else:
b=m[0:int(a)]
c=m[int(a+1):len(m)]
t=list(b)
arr=list©
t.sort()
arr.sort()
if t==arr:
print(‘YES’)
else:
print(‘NO’)

1 Like

What do you mean by error? You didnt even submit a solution!

I think he’s getting the error in his offline compiler idk

He said he “ran” all the TC so well :stuck_out_tongue:

I think he meant all the test cases on the problem page ^)^

Anyway he got AC

1 Like