You are viewing a single comment's thread. Return to all comments →
c++
int squares(int a, int b) { int start = ceil(sqrt(static_cast<double>(a))); int end = floor(sqrt(static_cast<double>(b))); if (end < start) return 0; return end - start + 1; }
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 →
c++