# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95411 | popovicirobert | 007 (CEOI14_007) | C++14 | 282 ms | 16248 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 lsb(x) (x & (-x))
#define ll long long
#define ull unsigned long long
#define ld long double
// 217
// 44
using namespace std;
const int MAXN = (int) 2e5;
vector <int> g[MAXN + 1];
int dst[MAXN + 1][2];
inline void bfs(int nod, bool t) {
queue <int> Q;
dst[nod][t] = 1;
Q.push(nod);
while(Q.size()) {
nod = Q.front();
Q.pop();
for(auto it : g[nod]) {
if(dst[it][t] == 0) {
dst[it][t] = dst[nod][t] + 1;
Q.push(it);
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |