2018 Asia Singapore Preliminary Contest
[](https://open.kattis.com/contests/asiasg18-prelim-open/standings) How to solve D and E, I tried but failed.
Полный текст и комментарии »
Which problem is similar with this problem?
![ ]()
My solution: f[i] = f[i-1]+i with f[2]=4, but I'm not sure my solution is correct. Anyone here tell me which problem on any online judge similar with the beyond problem?