cf/mirror

The minimal unique substring

CF
1158B2200· master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 4
Output
1111
Sample 2of 3
Input
5 3
Output
01010
Sample 3of 3
Input
7 3
Output
1011011
1158B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)