t = int(input()) #case0%,哪位精通python的大神可以给我这个小白指点一下为什么错了 res = [] k = [] for i in range(t): l = list(map(int, input().split(' '))) k.append(l[1]) res.append(list(map(int, input().split(' '))))
def fly(li, s): pos = 0 a = 1 while pos < len(li) - 1: if li[pos] >= li[pos + 1]: pos = pos + 1 elif a == 1: pos = pos + s a = 0 else: print('NO') break if pos >= len(li) - 1: print('YES')