Comments
+47

I think D problem is an easy version of this problem 538E. (Used the same solution and passed)

Yeah, no