Submission #29157

# Submission time Handle Problem Language Result Execution time Memory
29157 2017-07-18T11:50:39 Z ozaslan Dancing Elephants (IOI11_elephants) C++14
0 / 100
83 ms 17644 KB
#include <bits/stdc++.h>
#include "elephants.h"
using namespace std;

int n;
int l;
int bir, iki;

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

int update(int i, int y)
{
    if(i == 1) bir = y;
    else iki = y;
    
    int fark = abs(bir - iki);
    
    if(fark > l) return 2;
    else return 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 17644 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 17644 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 16 ms 17644 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 17644 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 83 ms 17644 KB Output isn't correct
2 Halted 0 ms 0 KB -