#include<bits\stdc++.h>
#include<cmath>
using namespace std;
int main(){
int R;
int e=0,r=0;
double X,Y,Z;
cin>>R;
for(int i=1;i<=R;i++){
for(int j=2;j<=R;j++){
X=i;
Y=j;
Z*Z=X*X+Y*Y;
r=int(Z*Z);
if(r<=R){
e=e+1;
}
}
}
cout<<e;
return 0;
}
欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) | Powered by Discuz! X3.3 |