12 lines
196 B
C++
12 lines
196 B
C++
|
#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;
|
||
|
}
|