hdu 2551 竹青遍野

来源:互联网 发布:视频编辑软件安卓版 编辑:程序博客网 时间:2024/04/27 19:07
#include<iostream>using namespace std;int main(){int t;scanf("%d", &t);while(t--){__int64 n, s = 0, i = 1;scanf("%I64d", &n);while(s < n){s += i * i * i;i++;}printf("%I64d\n", i-1);}return 0;}