The minimal unique substring
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
58%
1158B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
4 4
1111
5 3
01010
7 3
1011011