Good Subarrays

easy
<a href="https://codeforces.com/problemset/problem/1398/C" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Good Subarrays</i></a>

Input Format

check the link

Output Format

check the link

Constraints

check the link

Example

Input
3
3
120
5
11011
6
600005
Output
3
6
1
Previous
Lcm
Next
Divisibility By Difference

Related Questions