mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
22 lines
268 B
C
22 lines
268 B
C
#include "stdio.h"
|
|
|
|
int main ()
|
|
{
|
|
int n;
|
|
scanf ("%d", &n);
|
|
int i, a=0;
|
|
for (i=1; ; i++)
|
|
{
|
|
int x=0;
|
|
x = i*i*i;
|
|
a += x;
|
|
if (a>n)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
printf ("%d", i-1);
|
|
|
|
return 0;
|
|
}
|