'commit'
This commit is contained in:
10
TangDou/AcWing/RongChi/HDU2204_0.cpp
Normal file
10
TangDou/AcWing/RongChi/HDU2204_0.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user