The following code runs successfully on codeforces ide but, NOT on codechef / Coding Blocks IDE…
Please can you help me out ?
The coding blocks ide is not working (I am not able to save it freezes)…Hence I am sharing my codechef submission link just to share my code.
https://www.codechef.com/viewsolution/49370908
Sample input:-
2
3
4 2 4
6
2 8 6 2 1 5
Sample output
4
28


)