#abc157c. [abc157_c]Guess The Number

[abc157_c]Guess The Number

定义“好数”是恰好有 nn 位,并且从左往右数第 sis_i 位是 cic_i 的数。

你需要输出最小的“好数”,若没有则输出-1