#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 |
- |