Thursday, October 2, 2014

ACM 1924. Four Imps / Четыре чертёнка

First of all, the result can;t give different remainders divided on 2 no matter how we distribute pluses and minuses. We know that odd numbers are of a form 2*k+1 so no matter we add aor subtract them the result will give an even number => if there is even number of odd numbers from 1 to n than the answer is "black".


       FULL SOURCE CODE

No comments:

Post a Comment