# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
362327 | NachoLibre | Werewolf (IOI18_werewolf) | C++17 | 1233 ms | 114408 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define sz(a) ((int)a.size())
typedef vector<int> vint;
#ifndef wambule
#include "werewolf.h"
#else
#endif
struct ovo {
ovo *l, *r;
int m;
ovo() {
l = r = NULL;
m = -1;
}
void P() {
if(l == NULL) l = new ovo();
if(r == NULL) r = new ovo();
m = max(l->m, r->m);
}
};
int si, vl;
void _G(int l, int r, ovo *&t) {
if(t == NULL) t = new ovo();
if(l == r) {
t->m = vl;
return;
Compilation message (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... |