Announcement

The definition of the function f(a, k) has been updated.

Announcement

Statement of problem G has been clarified, you can recheck it

Time Limit: 1000ms
Memory Limit: 256MB
Number of the Beast