题目没多大意思,就是考虑问题不够,需要考虑为负数情况
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
double n;
int Case;
cin >> Case;
while( Case-- ){
cin >> n;
if( n >= 0 )
printf( "%.6lf\n", pow( n, 1.0 / 3 ) );
else
printf( "-%.6lf\n", pow( -n, 1.0/ 3 ) );
}
return 0;
}