wrong answer on problem count subarrays practice beginner

for _ in range(int(input())):
n=int(input())
a=list(map(int,input().split()))
c=0
for i in range(len(a)):
for j in range(i,len(a)):
if j>(i+1):
break
elif((i<=j) and (a[i]<=a[j])):
c+=1
else:
continue
print©

Add problem link in your question and format your code.

2 Likes

Provide the link of your solution rather than putting your code here.