# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1167226 | InvMOD | Dreaming (IOI13_dreaming) | C++20 | 48 ms | 15424 KiB |
#include<bits/stdc++.h>
//#define name "InvMOD"
#ifndef name
#include "dreaming.h"
#endif // name
using namespace std;
#define sz(v) (int)(v).size()
#define all(v) (v).begin(), (v).end()
#define dbg(x) "[" << #x " = " << (x) << "]"
template<typename T> bool ckmx(T& a, const T& b){
if(a < b)
return a = b, true;
return false;
}
int travelTime(int n, int m, int L, int A[], int B[], int T[]){
vector<vector<int>> adj(n, vector<int>());
for(int i = 0; i < m; i++){
adj[A[i]].push_back(i);
adj[B[i]].push_back(i);
}
vector<int> d(n, -1);
function<void(int,int)> preDFS = [&](int x, int p) -> void{
d[x] = 0;
# | 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... |