#include "elephants.h"
#include<cmath>
int n;
bool s1 = false;
int p[4];
void init(int N, int L, int X[])
{
if(N==2) s1= true;
p[1] = X[0];
p[2] = X[1];
n = N;
}
int update(int i, int y)
{
p[i] = y;
if( std::abs(p[1]-p[2]) <=10) return 1;
return 2;
return n;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
16740 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
16740 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
26 ms |
16740 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
26 ms |
16740 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
69 ms |
16740 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |