# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1156551 | kerem | Hiperkocka (COCI21_hiperkocka) | C++20 | 26 ms | 3656 KiB |
#include <bits/stdc++.h>
using namespace std;
//~ #define int long long
#define fr first
#define sc second
#define pb push_back
#define endl "\n"
#define all(x) x.begin(),x.end()
#define sp << " " <<
#define inf 1e18+1
#define N 200000
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);cout<<fixed<<setprecision(0)
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
typedef tuple<int,int,int> tiii;
typedef pair<int,int> pii;
int say=0;
vector<int> v[17],d(17);
void dfs(int x,int ata){
for(auto i:v[x]){
if(i==ata) continue;
d[i]=d[x]^(1<<say);
say++;
dfs(i,x);
}
}
void solve(){
int n;
cin >> n;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |