Question: i need the solution in C++ code as soon as possible B. Even and Odd time limit per test: 3.5 seconds memory limit per test:
B. Even and Odd time limit per test: 3.5 seconds memory limit per test: 64 megabytes input: standard input output: standard output Abbas is having a problem again and needs your help. One day his child sultan was studying math so he can solve his homework, sultan isn't that good student so he didn't understand the difference between even and odd numbers which is the homework about, so he decided to ask his father to help him. The homework is to identify if a set of numbers is all even or all odd or a mix between them. Abbas is busy and you (as his best friend) offered to help him with that. Input The input consists of several lines, first line is the number of problems in the homework (1 sTs 100), for each problem there is two lines, first of them is N the size of the set (1 s Ns 10) and the second one is N numbers x the numbers of the set (1 sxs 10%). Output Print a single line "Even if the set consists of only evens or "Odd if the set consists of only odds or "Mix" if the set consists of both even and odd numbers. Example input Copy 3 6 2 6 8 2 4 10 5 9 9 3 11 5 6 958143 output Even Odd Mix Copy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
