# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
429574 | giorgikob | The Xana coup (BOI21_xanadu) | C++14 | 120 ms | 24740 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 ll long long
#define ff first
#define ss second
#define pb push_back
using namespace std;
const int N = 1e5+50, mod = 998244353, K = 31;
int dp[N][2][2][2];
int n;
int A[N];
vector<int>gr[N];
int x,y;
///// chartuli, dawerili, shvilebi;
inline void Min(int &x,int val){
x = min(x,val);
}
void dfs(int x,int p){
int cur = A[x];
if(x != 1 && gr[x].size() == 1){
dp[x][cur][0][0] = 0;
dp[x][1-cur][1][0] = 1;
dp[x][cur][0][1] = 0;
dp[x][1-cur][1][1] = 1;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |