this time actually implemented problem E but overthought it so hard that it did not work. happens, next time I'll get it if it won't be math xd hope that the explanations are not that bad 0:04 Solving A 2:14 Solving B 7:01 Solving C 15:16 Solving D 42:22 Solving E 1:40:04 End of contest 1:49:03 Solution A 1:50:13 Solution B 1:52:19 Solution C 1:58:40 Solution D 2:09:29 Kinda solution of E