#include <bits/stdc++.h>
#define int long long
using namespace std;
const int mod=1e9+7;
signed main() {
ios_base::sync_with_stdio(false); cin.tie(nullptr);
int n,m,D; cin >> n >> m >> D;
int mx=1e12;
int retMax=-1e12;
for (int _i = 0; _i < m; _i++)
{
int x; cin >> x;
retMax=max(((_i*D)+x)-mx, retMax);
cout << (double)max(0LL,retMax)/(double)2 << " ";
mx=min((_i*D)+x,mx);
}
cout << "\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
113 ms |
4748 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
113 ms |
4748 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |