codeforces:fomula
codeforces:brute force solution for Little DIma and Equations problem