You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
305 B

2 years ago
#include <bits/stdc++.h>
using namespace std;
int main() {
int n = 10;
cout << (int)pow(n, 1.0 / 2) << endl;
// 输出3理解一下
// 10以内可以描述为x^2的有1^2 2^2 3^2
// 这样就是说上面的算法把数字1记录在内了。
return 0;
}