From f62e6358245cb74eede8e1f11f8f7d32990ff4b8 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 27 Oct 2016 19:34:47 +0800 Subject: [PATCH] Create 1410_1232123212.c --- QUSTOJ/1410_1232123212.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 QUSTOJ/1410_1232123212.c 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; +}