OJ-Problems-Source/HDOJ/2551_autoAC.cpp
2016-08-22 00:30:27 +08:00

20 lines
287 B
C++

#include <iostream>
using namespace std;
int main()
{
int t,x;
cin>>t;
while(t--)
{
cin>>x;
long long s=0,i=1;
while(s<x)
{
s+=i*i*i;
i++;
}
cout<<i-1<<endl;
}
return 0;
}