ll h,w,b,ox,oy; char p[60][60]; double b; void f(){ double d=0; rep(y,h)rep(x,w)d+=p[y][x]%2*hypot(x-ox,y-oy); b