cf/mirror

New Problem

CF
278B1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5
threehorses
goodsubstrings
secret
primematrix
beautifulyear
Output
j
Sample 2of 2
Input
4
aa
bdefghijklmn
opqrstuvwxyz
c
Output
ab
278B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)