# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
363242 | buyolitsez | Xylophone (JOI18_xylophone) | C++17 | 102 ms | 748 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "xylophone.h"
#include <bits/stdc++.h>
using namespace std;
bool Check(int a, int b, int c, int i) {
if (a == b || b == c || a == c) {return false;}
if (a > b && b > c) {
return query(i + 1, i + 3) == a - c;
}
if (a > c && c > b) {
return query(i + 1, i + 3) == a - b;
}
if (c > a && a > b) {
return query(i + 1, i + 3) == c - b;
}
if (c > b && b > a) {
return query(i + 1, i + 3) == c - a;
}
if (b > a && a > c) {
return query(i + 1, i + 3) == b - c;
}
if (b > c && c > a) {
return query(i + 1, i + 3) == b - a;
}
}
int GetRight(int n, int a, int b, int x, int i) {
int c1 = b + x, c2 = b - x;
if (c1 > n) {return c2;}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |