You are viewing a single comment's thread. Return to all comments →
thank you for your logic.. your logic needs some implementation and it is as:
cin>>a>>b; l=sqrt(a);h=sqrt(b); if(l!=h) { if(l*l!=a) cout<<h-l<<endl; else cout<<h-l+1<<endl; } else { if(l*l==a) cout<<h-l+1<<endl; else cout<<h-l<<endl;; }
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
thank you for your logic.. your logic needs some implementation and it is as: