# PAR2 - Editorial

Author: Ashu Mittal
Testers: Takuki Kurokawa, Utkarsh Gupta
Editorialist: Nishank Suresh

295

None

# PROBLEM:

There are N chocolates. Can they be divided equally among two people?

# EXPLANATION:

The chocolates can be divided equally if and only if there are an even number of them…

So, just check if N is even using an if condition and print Yes if it is, No if it isn’t.

# TIME COMPLEXITY

\mathcal{O}(1) per test case.

# CODE:

Editorialist's code (Python)
for _ in range(int(input())):
print('Yes' if int(input())%2 == 0 else 'No')