# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
880347 | Mardonbekhazratov | Cyberland (APIO23_cyberland) | C++17 | 24 ms | 7772 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 "cyberland.h"
#include<bits/stdc++.h>
#include <vector>
using namespace std;
#define ll long long
const ll INF=1e18;
vector<vector<pair<int,int>>>v;
vector<bool>v1,v2;
void dfs(int x){
v1[x]=true;
for(auto [y,z]:v[x]){
if(!v1[y]) dfs(y);
}
}
void dfss(int x){
v2[x]=true;
for(auto [y,z]:v[x]){
if(!v2[y]) dfs(y);
}
}
double solve(int N, int M, int K, int H, vector<int> x, vector<int> y, vector<int> c, vector<int> arr) {
// bool subtask=true;
// for(int i=0;i<N;i++) if(arr[i]!=1) subtask=false;
// if(subtask){
v.resize(N);
for(int i=0;i<M;i++){
# | 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... |