Angry Delta SOLUTIONS ECAUG202

Angry Delta SOLUTIONS ECAUG202

At some point, Delta, the canine, got extremely furious. He has N things with various qualities, and he chose to pulverize a couple of them. Nonetheless, Delta adores his hooman also. So he just decimated those things whose Least Significant Bit in paired portrayal is 0. Would you be able to assist Delta with finding the complete harm he did so he could make a similarly sorry face? 

 

Information: 

First line will contain T, number of testcases. At that point the testcases follow. 

First line of Each experiment a solitary whole number N. 

Next line contains N whole numbers meaning estimations of things. 

 

Yield: 

For each testcase, yield in a solitary line the absolute harm brought about by Delta. 

 

Imperatives 

1≤T≤103 

1≤N≤103 

1≤value≤103 

Test Input: 

 

 

 

1 2 3 4 5 

 

Test Output: 

 

 

Clarification: 

 

All out Damage: 2+4=6.

CLICK HERE TO DOWNLOAD

March Long Challenge 2021 Solutions

April Long Challenge 2021 Solutions

Codechef Long Challenge Solutions

February Long Challenge 2021

1. Frog Sort Solution Codechef

2. Chef and Meetings Solution Codechef

3. Maximise Function Solution Codechef

4. Highest Divisor Solution Codechef

5. Cut the Cake Challenge Solution Codechef

6. Dream and the Multiverse Solution Codechef

7. Cell Shell Solution Codechef

8. Multiple Games Solution Codechef

9. Another Tree with Number Theory Solution Codechef

10. XOR Sums Solution Codechef

11. Prime Game Solution CodeChef

12. Team Name Solution Codechef

January Long Challenge 2021

November Challenge 2020 SOLUTION CodeChef

October Lunchtime 2020 CodeChef SOLUTIONS

RELATED :

Related :

Related :

Leave a Comment