Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I checked that RP_ - but found for $n=3$ the constant functions $f_A=f_B=0$ don't give a max (they give 5/9), instead I get a max (6/9) for example for $f_A(0)=1, f_A(1)=f_A(2)=0$, $f_B(0)=0, f_B(1)=f_B(2)=1$.
Ah, okay, I guess I have not thought about the metric for the area A, or for the averaging: But then one can still pose this question for discrete case, area corresponding to N points, divide by N for average (as replied by Joseph below).