이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |