MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

CodeChef_problems/CLLCM/solution.cpp:15–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace std;
14
15int main(){
16 int T = 0;
17 cin>>T;
18 while(T--){
19 int N = 0;
20 cin>>N;
21 int A[1000];
22 int flag = 0;
23 for(int i =0;i<N;i++){
24 cin>>A[i];
25 if(A[i]%2==0){ //if any element is even then we know answer is NO
26 flag = 1;
27 }
28 }
29 if(flag == 1){
30 cout<<"NO"<<endl;
31 }
32 else{
33 cout<<"YES"<<endl;
34 }
35 }
36 return 0;
37}
38

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected