[OI10SUM] Sums (POI 2010: Poland)
March 14, 2017
Interesting problem with more thinking and less implementation. You can find hints and more discussion here: POI 10 Sums. Problem is from Polish Olympiad in Informatics.
Link to problem (updated): https://szkopul.edu.pl/problemset/problem/4CirgBfxbj9tIAS2C7DWCCd7/site/?key=statement.