Create 1410_1232123212.c

pull/45/head
Kirigaya Kazuto 2016-10-27 19:34:47 +08:00 committed by GitHub
parent b00528607b
commit f62e635824
1 changed files with 21 additions and 0 deletions

21
QUSTOJ/1410_1232123212.c Normal file
View File

@ -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;
}