#P7453. [2017年杭电多校]TrickGCD
[2017年杭电多校]TrickGCD
TrickGCD
Problem Description
You are given an array , and Zhu wants to know there are how many different array satisfy the following conditions?
- For each pair( l , r ) () ,
Input
The first line is an integer T() describe the number of test cases. Each test case begins with an integer number n describe the size of array . Then a line contains numbers describe each element of You can assume that
Output
For the th test case , first output "Case #k: " , then output an integer as answer in a single line . because the answer may be large , so you are only need to output answer
Sample Input
1
4
4 4 4 4
Sample Output
Case #1: 17
Source
2017 Multi-University Training Contest - Team 2