Can please anyone explain me the approach to solve this problem??
let us assume that we have some odd integers and we need them to represent them as a other number, we know that sum of n odd integers will be atleast n^2 and sum of odd number of odd integers is odd and sum of even n integers is even.
if(k*k>=n and n%2==k%2) cout<<"YES\n"; else cout<<"NO\n"
I hope you know:
Thankyou I got it!!