문제
Farmer John’s cows are showing off their new dance mooves!
At first, all
In minute
In minute
...
In minute
In minute
In minute
and so on ...
For each cow, please determine the number of unique positions in the line she will ever occupy.
Note: the time limit per test case on this problem is twice the default.
입력
The first line contains integers
출력
Print
예제1
6 4 7
1 2
2 3
3 4
4 5
5
4
3
3
3
1
After
Cow
Cow
Cow
Cow
Cow
Cow
출처
USACO 2021 January Gold