Editorial
Need a hint? Checkout the editorial.
View Editorial
Editorial
Let, $f(c)=g(c-926)+a$
Then, you should get $g(P_1(c))+2g(P_2(c))=0$ with $P_1(c)$ and $P_2(c)$. After that, you have to prove that, $g(c)=0$. And you got the function $f(c)=a$