답안 #931457

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
931457 2024-02-21T20:54:59 Z mohammedMonem 코끼리 (Dancing Elephants) (IOI11_elephants) C++14
10 / 100
2 ms 6492 KB
#include "elephants.h"
#include <bits/stdc++.h>

using namespace std;

int n, l;
vector<int> x;

void init(int N, int L, int X[]) {
    n = N, l = L;
    for (int i = 0; i < N; ++i) {
        x.push_back(X[i]);
    }
}

int update(int i, int y) {
    x[i] = y;
    return 1 + (abs(x[0] - x[1]) > l);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 2 ms 6488 KB Output is correct
3 Correct 2 ms 6492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 2 ms 6488 KB Output is correct
3 Correct 2 ms 6492 KB Output is correct
4 Incorrect 1 ms 6492 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 2 ms 6488 KB Output is correct
3 Correct 2 ms 6492 KB Output is correct
4 Incorrect 1 ms 6492 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 2 ms 6488 KB Output is correct
3 Correct 2 ms 6492 KB Output is correct
4 Incorrect 1 ms 6492 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 2 ms 6488 KB Output is correct
3 Correct 2 ms 6492 KB Output is correct
4 Incorrect 1 ms 6492 KB Output isn't correct
5 Halted 0 ms 0 KB -