题解 | 平方根
平方根
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")
小天才公司福利 1173人发布
查看5道真题和解析