diff --git a/QUSTOJ/1410_1232123212.c b/QUSTOJ/1410_1232123212.c new file mode 100644 index 0000000..8b13c3d --- /dev/null +++ b/QUSTOJ/1410_1232123212.c @@ -0,0 +1,21 @@ +#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; +}