90分C嘎嘎,求助!!
查看原帖
90分C嘎嘎,求助!!
1145090
BoubbleSort___楼主2024/4/29 23:08

代码如下:

#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

2024/4/29 23:08
加载中...