src2020/3045_fangcheng/main.cpp

12 lines
196 B
C++
Raw Normal View History

2020-04-19 10:36:06 +08:00
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,ans=0;
cin>>n;
for(int i=0;i*i*i<=n;i++){
ans+=floor(sqrt(n-i*i*i))+1;
}
cout<<ans;
}