답안 #93997

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
93997 2019-01-14T13:31:19 Z someone_aa 코끼리 (Dancing Elephants) (IOI11_elephants) C++17
10 / 100
2 ms 504 KB
#include "elephants.h"
#include <bits/stdc++.h>

int n, l, x[2];

void init(int N, int L, int X[]) {
    n = N;
    l = L;
    x[0] = X[0];
    x[1] = X[1];
}

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