let t = Int(readLine()!)! for i in 1...t{ let nm = readLine()!.split(separator: " ").map{Int($0)!} let (n,m) = (nm[0],nm[1]) var A = [0,m] + readLine()!.split(separator: " ").map{Int($0)!} var f = true if n > 1{ for i in 2...n{ let a = A[i]-A[i-2] if a < 0{ f = false } A[i-1] -= a if A[i-1] < 0{ f = false } } } if A[n+1] != A[n-1] + A[n]{ f = false } if f { print("Yes") }else{ print("No") } }