View Code of Problem 3792

    #include<stdio.h>
    #define N 200005
    int main(){
    	int t;
    	scanf("%d",&t);
    	while(t--){
    		int n;
    		scanf("%d",&n);
    		int a[N];
    		for(int i = 1;i<=n;i++){
    		    scanf("%d",a+i);
    		}
    		if(n%2&&a[1]%2&&a[n]%2)
    			puts("Yes");
    		else
    			puts("No");
    	}
    }

Double click to view unformatted code.


Back to problem 3792