Substring
919D1700· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 4abaca1 21 33 44 5
Output
3
Sample 2of 3
Input
6 6xzyabc1 23 12 35 44 36 4
Output
-1
Sample 3of 3
Input
10 14xzyzyzyzqx1 22 43 54 52 66 86 52 103 910 94 61 102 83 7
Output
4
58%
919D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…