Submission #935181

# Submission time Handle Problem Language Result Execution time Memory
935181 2024-02-28T18:59:54 Z Ludissey Measures (CEOI22_measures) C++14
35 / 100
37 ms 5464 KB
#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=1e18+2;
    int retMax=0;
    for (int _i = 0; _i < m; _i++)
    {
        int x; cin >> x;
        retMax=max(((_i*D)-x)-mx, retMax);
        if(retMax%2==0) cout << retMax/2LL << " ";
        else cout << retMax/2LL << ".5 ";
        mx=min((_i*D)-x,mx);
    }
    cout << "\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1352 KB Output is correct
2 Correct 37 ms 3312 KB Output is correct
3 Correct 34 ms 5196 KB Output is correct
4 Correct 30 ms 3156 KB Output is correct
5 Correct 32 ms 4436 KB Output is correct
6 Correct 29 ms 3412 KB Output is correct
7 Correct 32 ms 4292 KB Output is correct
8 Correct 30 ms 3164 KB Output is correct
9 Correct 28 ms 2896 KB Output is correct
10 Correct 35 ms 5464 KB Output is correct
11 Correct 28 ms 3932 KB Output is correct
12 Correct 33 ms 4688 KB Output is correct
13 Correct 27 ms 3136 KB Output is correct
14 Correct 35 ms 4948 KB Output is correct
15 Correct 33 ms 4688 KB Output is correct
16 Correct 28 ms 2704 KB Output is correct
17 Correct 32 ms 4332 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1352 KB Output is correct
2 Correct 37 ms 3312 KB Output is correct
3 Correct 34 ms 5196 KB Output is correct
4 Correct 30 ms 3156 KB Output is correct
5 Correct 32 ms 4436 KB Output is correct
6 Correct 29 ms 3412 KB Output is correct
7 Correct 32 ms 4292 KB Output is correct
8 Correct 30 ms 3164 KB Output is correct
9 Correct 28 ms 2896 KB Output is correct
10 Correct 35 ms 5464 KB Output is correct
11 Correct 28 ms 3932 KB Output is correct
12 Correct 33 ms 4688 KB Output is correct
13 Correct 27 ms 3136 KB Output is correct
14 Correct 35 ms 4948 KB Output is correct
15 Correct 33 ms 4688 KB Output is correct
16 Correct 28 ms 2704 KB Output is correct
17 Correct 32 ms 4332 KB Output is correct
18 Incorrect 32 ms 4444 KB Output isn't correct
19 Halted 0 ms 0 KB -