Comments

I hope you find these problems both interesting and enjoyable.

Auto comment: topic has been updated by frosted (previous revision, new revision, compare).

Here's the editorial.

Let's see.

The input $$$n$$$ cannot be stored in a 32 bit integer.

Sorry, now the time is fixed.

As an author, I want to say that the problems are very interesting.