Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Comments
0

in 330C, after determining the grid can be purified, how do you determine which n blocks to go?

In div 1 B, what is the function P?

It says it is KMP, but KMP is to find a substring inside a string so I dont see how to do P[n].

What does function P receive as parameter? For what I have read it can either be an integer or the string itself?