代码如下:
#include<iostream> #include<cmath> using namespace std; int main(){ long double x; cin>>x; double s=pow(x,1.0/3.0); printf("%lld",(long long)s); return 0; }
只有s+1的时候最后一个点才对,但前面的点都错QAQ