Hide
Problem F
Dividing Sequence
You are given an integer
Input
The input contains one line with integer
Output
The first line of output contains the length of the longest
sequence. The second line contains space separated numbers
Sample Input 1 | Sample Output 1 |
---|---|
6 |
3 1 3 6 |