← 返回 amazon 的题目列表Compare Sub-Passcodes
类型:online_judge
Compare two passwords a and b, find out the number of all sub-passwords in a that are greater than b, and take modulo 10^9+7. Sub-passwords need to be contiguous and adjacent character-wise.
Example
Input
3
aba
ab