# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
401454 | egekabas | The Xana coup (BOI21_xanadu) | C++14 | 124 ms | 28220 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>
#define all(x) (x).begin(), (x).end()
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<ull, ull> pull;
typedef pair<ll, ll> pii;
typedef pair<ld, ld> pld;
ll n;
vector<ll> g[100009];
ll st[100009];
ll dp[100009][2][2];
ll sf(pii a, pii b){
return (a.ss-a.ff) < (b.ss-b.ff);
}
void dfs(ll v, ll prt){
for(auto u : g[v])
if(u != prt)
dfs(u, v);
for(ll use = 0; use < 2; ++use)
for(ll res = 0; res < 2; ++res){
ll curst = (st[v]^use);
ll curv = use;
vector<pii> vec;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |