|
|
back to boardAccepted 0.015 196 КБ Posted by ace 23 Oct 2012 12:16 #include<iostream> using namespace std; int main() { __int64 x,y=0,z=0,q,p,r; cin>>r; x=r; q=r*r; while(y<r) { p=q-y*y; while( x*x >= p && x >= 0 )--x; z+=(x+1); y++; } z*=4; cout<<z; system("pause"); return 0; } |
|
|