# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
866723 | vjudge1 | Monster Game (JOI21_monster) | C++17 | 111 ms | 928 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "monster.h"
using namespace std;
/*vector<int> a;
bool Query(int x, int y)
{
//cout << "? " << x << " " << y << '\n';
bool win=false;
if (a[x]-a[y]>1 || a[y]-a[x]==1)
win=true;
//cout << win << '\n';
return win;
}*/
bool compare(int x, int y)
{
return !Query(x, y);
}
int firstelement(int x, int n)
{
int win=0;
for (int i=0; i<n; i++)
{
if (i==x)
continue;
win=win+Query(x, i);
컴파일 시 표준 에러 (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... |