# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1175022 | Johan | Rainforest Jumps (APIO21_jumps) | C++20 | 2595 ms | 1114112 KiB |
#include "jumps.h"
#include "bits/stdc++.h"
using namespace std;
const int MAX = 3e5 + 6;
const int LOG = 25;
const int inf = 1e9;
const int mod = 1e9 + 7;
const int block = 333;
// mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int st[MAX * 4];
vector < int > nodes;
vector < bool > vis(MAX, 0);
vector < vector < int > > adj(MAX);
unordered_map < int , unordered_map < int , int > > d;
void bfs(int s){
if(d.find(s) != d.end()) return;
queue < int > q;
q.push(s);
d[s][s] = 0;
while(q.size()){
int v = q.front();
q.pop();
for(auto u : adj[v]){
if(!d[s].count(u)){
q.push(u);
d[s][u] = d[s][v] + 1;
}
}
}
# | 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... |