| # | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1145744 | mitko7 | Easter Eggs (info1cup17_eastereggs) | C++20 | 0 ms | 464 KiB |
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int n;
vector<int> v[600];
int egg = 0;
int used[600];
vector<int> bfs(int x) {
memset(used, 0, n);
used[x]=1;
priority_queue<int> q;
q.push(x);
vector<int> ans;
ans.push_back(x);
while(!q.empty()) {
int c = q.top(); q.pop();
for(int nb : v[c]) {
if(!used[nb]) {
used[nb] = 1;
q.push(nb);
ans.push_back(nb);
}
}
}
return ans;
}
void solve(int curr) {
if(v[curr].size()==0) {
egg = curr;
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
