제출 #935181

#제출 시각아이디문제언어결과실행 시간메모리
935181LudisseyMeasures (CEOI22_measures)C++14
35 / 100
37 ms5464 KiB
#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;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…