mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
34806a93cd
2500-2599
20 lines
287 B
C++
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;
|
|
}
|