diff --git a/CodeForces/1604/A/A.cpp b/CodeForces/1604/A/A.cpp new file mode 100644 index 00000000..4e98ea87 --- /dev/null +++ b/CodeForces/1604/A/A.cpp @@ -0,0 +1,19 @@ +#include + +using namespace std; + +int t, n, a, ans; + +int main() { + cin >> t; + while (t--) { + ans = 0; + cin >> n; + for (int i = 1; i <= n; i++) { + cin >> a; + ans = max(ans, a - i); + } + cout << ans << endl; + } + return 0; +}