0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-19 22:25:27 +00:00
Baoshuo Ren 2021-10-30 22:39:29 +08:00 committed by Baoshuo Ren
parent 7896bca156
commit fa0a2c8f33
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

19
CodeForces/1604/A/A.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <bits/stdc++.h>
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;
}