#include <iostream> #include<math.h> using namespace std; int main() { int a; cin>>a; cout<<(int)sqrt(a); } // 64 位输出请用 printf("%lld")
math库,sqrt开平方