mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1410_1232123212.c
This commit is contained in:
parent
b00528607b
commit
f62e635824
21
QUSTOJ/1410_1232123212.c
Normal file
21
QUSTOJ/1410_1232123212.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user