Please read the new rule regarding the restriction on the use of AI tools. ×

Codeforces Round #627 (Div. 3)

Revision en1, by Not-Strong-Enough, 2020-03-12 19:36:16

Problem number: A this is a simple problem,You have to count the odd number and even number. If count value of odd or count value of even is equal to size of array then answer should be Yes else No. Example: In the 1st test case value of n is 3 and element of array is 1 1 3 so here all number is odd so count of odd is 3 and it's equal to the size of array so the answer is yes. In the 2nd test case the value of n is 4 and elements of array is 1 1 2 1 here count of odd is 3 and count of even is 1 so this two are not equal to n so the answer is No.

Tags codeforces round#627

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Not-Strong-Enough 2020-03-12 19:36:16 586 Initial revision (published)