Let $ f \in L^1[0,1]$. Assume that there is a constant C, with $0 < C < 1$, such that for every measurable set $A \subset [0,1] $ with $m(A)=C$, we have $ \int_{A} f dm = 0 $. Prove that $f = 0$ almost everywhere.
I tried to do my contradiction but I could not get my head around it. Any hints or ideas are appreciated.
Since one of the sets $\{x : f(x) \geqslant 0\}$, $\{x: f(x) \leqslant 0\}$ has at least half measure, any $C \leq 0.5$ will work. A more interesting exercise would be to show that any $C < 1$ will work.