This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#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;
}