题解 | 平方根
平方根
https://www.nowcoder.com/practice/cd21e09482f24b03842f02ae3d403cad
#include <iostream> #include <cmath> #include <math.h> using namespace std; int main() { int n; cin >> n; int a = static_cast<int>(sqrt(n)); cout << a << endl; return 0; } // 64 位输出请用 printf("%lld")