# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
35976 | funcsr | Pipes (CEOI15_pipes) | C++14 | 3363 ms | 65536 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 <bitset>
#include <cassert>
#include <vector>
#define rep(i, n) for (int i=0; i<(n); i++)
#define INF 1145141919
#define pb push_back
using namespace std;
int N, M;
vector<int> G[100000];
int R[100000];
int U[17][100000];
void dfs(int x, int p, int r) {
R[x] = r;
U[0][x] = p;
for (int t : G[x]) {
if (t == p) continue;
dfs(t, x, r+1);
}
}
signed main() {
auto f = fopen("/dev/stdin", "r");
fscanf(f, "%d %d", &N, &M);
auto backward = new bitset<6000000>();
rep(i, M) {
int u, v;
fscanf(f, "%d %d", &u, &v);
u--, v--;
G[u].pb(v);
G[v].pb(u);
}
printf("1\n");
return 0;
}
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... |
# | 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... |