根据条件枚举所有可能性
#include <bits/stdc++.h>
using namespace std;
int main(){
int h,w,x;
cin>>h>>w>>x;
int cnt=0;
for(int r=1;r<=h;r++){
for(int c=1;c<=w;c++){
if(sqrt(pow(r,2)+pow(c,2))<=x+r-c){
cnt++;
}
}
}
cout<<cnt;
return 0;
}