| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 445136 | flappybird | 길고양이 (JOI20_stray) | C++14 | 72 ms | 21244 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anthony.h"
#include <vector>
using namespace std;
typedef int ll;
#define MAX 101010
namespace {
vector<ll> adj[MAX], num[MAX], depth;
vector<ll> ret;
void dfs(ll x = 0, ll p = -1, ll d = 1) {
depth[x] = d;
ll i;
for (i = 0; i < adj[x].size(); i++) {
if (adj[x][i] == p) continue;
dfs(adj[x][i], x, !d);
ret[num[x][i]] = d;
}
}
} // namespace
std::vector<int> Mark(int N, int M, int A, int B, std::vector<int> U, std::vector<int> V) {
ret.resize(M);
ll i;
for (i = 0; i < M; i++) adj[U[i]].push_back(V[i]);
for (i = 0; i < M; i++) num[U[i]].push_back(i);
for (i = 0; i < M; i++) adj[V[i]].push_back(U[i]);
for (i = 0; i < M; i++) num[V[i]].push_back(i);
depth.resize(N);
dfs();
return ret;
}
#include "Catherine.h"
#include <vector>
using namespace std;
typedef int ll;
namespace {
int A, B;
int variable_example = 0;
ll pv;
} // namespace
void Init(int A, int B) {
::A = A;
::B = B;
pv = -1;
}
int Move(std::vector<int> y) {
if (!(y[0] + y[1])) return -1;
if (pv == -1) {
if (y[0]) return pv = 0;
else return pv = 1;
}
return pv = (1 - pv);
}
컴파일 시 표준 에러 (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... | ||||
| # | 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... | ||||
