CF 1431I - Cyclic Shifts

Codeforces 1431I: Cyclic Shifts

CF 1431I - Cyclic Shifts

Rating: 2900
Tags: *special, strings
Solve time: 2m 42s
Verified: no

Solution