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"
3 Likes
I hope you know:
1+3+5+7 +...(2n-1)=n^2
3 Likes
Thankyou I got it!!
Thankyou