#include #include #include #include #include using namespace std; bool isnotSorted(std::vector temp){ for(int i = 1 ; i < temp.size(); ++i){ if(temp[i] <= temp[i-1]){ return true; } } return false; } int main() { int x; cin>>x; while(x > 0){ std::vector temp; int whistle(0); int y; cin>>y; while(y > 0){ int l; cin>>l; temp.push_back(l); y--; } int minimum,maximum; while(isnotSorted(temp)){ for(int i = 0 ; i < temp.size() ; ++i){ temp[i] += i; } whistle++; } cout<