Equal Sets
CodeChefOpen on judge ↗
Chef has been given the task of dividing the numbers __1__, __2__, ..., __n__ into two sets such that the sum of the two sets is equal. Help Chef determine if it is possible to divide the numbers __1__, __2__, ..., __n__ into two sets of equal sum or not. Answer for _t_ test cases. ###INPUT: + The first line contains one integer _t_. + The following _t_ lines contains one integer _n_. ###OUTPU
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start