Files
python/TangDou/AcWing/RongChi/HDU2204_0.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

10 lines
305 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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;
}